Skip to content

Commit c129fb4

Browse files
Flutter warnings fixed (part 3) (#208)
* Flutter warnings fixed (#204) Co-authored-by: GitHub Action <[email protected]> * Flutter warnings fixed (part 2) (#205) * Flutter warnings fixed (#203) Co-authored-by: GitHub Action <[email protected]> * Flutter warnings fixed (part 2) --------- Co-authored-by: GitHub Action <[email protected]> * Flutter warnings fixed (part 3) --------- Co-authored-by: GitHub Action <[email protected]>
1 parent a4fe359 commit c129fb4

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

lib/src/dto/sk_product/discount.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import 'dart:ui';
2-
31
import 'package:json_annotation/json_annotation.dart';
42
import 'package:qonversion_flutter/src/internal/mapper.dart';
53

@@ -72,6 +70,6 @@ class SKProductDiscountWrapper {
7270
}
7371

7472
@override
75-
int get hashCode => hashValues(this.price, this.priceLocale,
73+
int get hashCode => Object.hash(this.price, this.priceLocale,
7674
this.numberOfPeriods, this.paymentMode, this.subscriptionPeriod);
7775
}

lib/src/dto/sk_product/sk_product_wrapper.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Copyright 2019 The Chromium Authors. All rights reserved.
22

3-
import 'dart:ui' show hashValues;
4-
53
import 'package:json_annotation/json_annotation.dart';
64
import 'package:qonversion_flutter/src/internal/mapper.dart';
75

@@ -92,7 +90,7 @@ class SKProductWrapper {
9290
}
9391

9492
@override
95-
int get hashCode => hashValues(
93+
int get hashCode => Object.hash(
9694
this.productIdentifier,
9795
this.localizedTitle,
9896
this.localizedDescription,
@@ -139,5 +137,5 @@ class SKPriceLocaleWrapper {
139137
}
140138

141139
@override
142-
int get hashCode => hashValues(this.currencySymbol, this.currencyCode);
140+
int get hashCode => Object.hash(this.currencySymbol, this.currencyCode);
143141
}

lib/src/dto/sk_product/subscription_period.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import 'dart:ui';
2-
31
import 'package:json_annotation/json_annotation.dart';
42

53
import 'subscription_period_unit.dart';
@@ -53,5 +51,5 @@ class SKProductSubscriptionPeriodWrapper {
5351
}
5452

5553
@override
56-
int get hashCode => hashValues(this.numberOfUnits, this.unit);
54+
int get hashCode => Object.hash(this.numberOfUnits, this.unit);
5755
}

0 commit comments

Comments
 (0)