Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions lib/src/dto/sk_product/discount.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:ui';

import 'package:json_annotation/json_annotation.dart';
import 'package:qonversion_flutter/src/internal/mapper.dart';

Expand Down Expand Up @@ -72,6 +70,6 @@ class SKProductDiscountWrapper {
}

@override
int get hashCode => hashValues(this.price, this.priceLocale,
int get hashCode => Object.hash(this.price, this.priceLocale,
this.numberOfPeriods, this.paymentMode, this.subscriptionPeriod);
}
6 changes: 2 additions & 4 deletions lib/src/dto/sk_product/sk_product_wrapper.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// Copyright 2019 The Chromium Authors. All rights reserved.

import 'dart:ui' show hashValues;

import 'package:json_annotation/json_annotation.dart';
import 'package:qonversion_flutter/src/internal/mapper.dart';

Expand Down Expand Up @@ -92,7 +90,7 @@ class SKProductWrapper {
}

@override
int get hashCode => hashValues(
int get hashCode => Object.hash(
this.productIdentifier,
this.localizedTitle,
this.localizedDescription,
Expand Down Expand Up @@ -139,5 +137,5 @@ class SKPriceLocaleWrapper {
}

@override
int get hashCode => hashValues(this.currencySymbol, this.currencyCode);
int get hashCode => Object.hash(this.currencySymbol, this.currencyCode);
}
4 changes: 1 addition & 3 deletions lib/src/dto/sk_product/subscription_period.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:ui';

import 'package:json_annotation/json_annotation.dart';

import 'subscription_period_unit.dart';
Expand Down Expand Up @@ -53,5 +51,5 @@ class SKProductSubscriptionPeriodWrapper {
}

@override
int get hashCode => hashValues(this.numberOfUnits, this.unit);
int get hashCode => Object.hash(this.numberOfUnits, this.unit);
}