diff --git a/lib/src/dto/sk_product/discount.dart b/lib/src/dto/sk_product/discount.dart index db90b0f2..cb1d5913 100644 --- a/lib/src/dto/sk_product/discount.dart +++ b/lib/src/dto/sk_product/discount.dart @@ -1,5 +1,3 @@ -import 'dart:ui'; - import 'package:json_annotation/json_annotation.dart'; import 'package:qonversion_flutter/src/internal/mapper.dart'; @@ -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); } diff --git a/lib/src/dto/sk_product/sk_product_wrapper.dart b/lib/src/dto/sk_product/sk_product_wrapper.dart index 9b68630b..8641e9a1 100644 --- a/lib/src/dto/sk_product/sk_product_wrapper.dart +++ b/lib/src/dto/sk_product/sk_product_wrapper.dart @@ -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'; @@ -92,7 +90,7 @@ class SKProductWrapper { } @override - int get hashCode => hashValues( + int get hashCode => Object.hash( this.productIdentifier, this.localizedTitle, this.localizedDescription, @@ -139,5 +137,5 @@ class SKPriceLocaleWrapper { } @override - int get hashCode => hashValues(this.currencySymbol, this.currencyCode); + int get hashCode => Object.hash(this.currencySymbol, this.currencyCode); } diff --git a/lib/src/dto/sk_product/subscription_period.dart b/lib/src/dto/sk_product/subscription_period.dart index 26cadb41..a7734039 100644 --- a/lib/src/dto/sk_product/subscription_period.dart +++ b/lib/src/dto/sk_product/subscription_period.dart @@ -1,5 +1,3 @@ -import 'dart:ui'; - import 'package:json_annotation/json_annotation.dart'; import 'subscription_period_unit.dart'; @@ -53,5 +51,5 @@ class SKProductSubscriptionPeriodWrapper { } @override - int get hashCode => hashValues(this.numberOfUnits, this.unit); + int get hashCode => Object.hash(this.numberOfUnits, this.unit); }