diff --git a/lib/backendless_sdk.dart b/lib/backendless_sdk.dart index 35f3a07..6b9139a 100644 --- a/lib/backendless_sdk.dart +++ b/lib/backendless_sdk.dart @@ -2,8 +2,6 @@ library backendless_sdk; import 'dart:collection'; import 'dart:io'; -import 'dart:typed_data'; -import 'dart:ui' show hashValues; import 'dart:convert'; import 'package:collection/collection.dart'; diff --git a/lib/src/modules/data/geo/line_string.dart b/lib/src/modules/data/geo/line_string.dart index 65e3e65..74921f8 100644 --- a/lib/src/modules/data/geo/line_string.dart +++ b/lib/src/modules/data/geo/line_string.dart @@ -11,7 +11,7 @@ class LineString extends Geometry { other is LineString && listEquals(points, other.points); @override - int get hashCode => hashValues(points, srs); + int get hashCode => Object.hash(points, srs); LineString({List? points, SpatialReferenceSystem? srs}) : super(srs: srs) { diff --git a/lib/src/modules/data/geo/point.dart b/lib/src/modules/data/geo/point.dart index 4114241..a803edf 100644 --- a/lib/src/modules/data/geo/point.dart +++ b/lib/src/modules/data/geo/point.dart @@ -20,7 +20,7 @@ class Point extends Geometry { (other.y - y).abs() < Point.precision; @override - int get hashCode => hashValues(x, y, srs); + int get hashCode => Object.hash(x, y, srs); Point({this.x = 0.0, this.y = 0.0, SpatialReferenceSystem? srs}) : super(srs: srs); diff --git a/lib/src/modules/messaging/status.dart b/lib/src/modules/messaging/status.dart index f226eb0..5d9a19a 100644 --- a/lib/src/modules/messaging/status.dart +++ b/lib/src/modules/messaging/status.dart @@ -33,7 +33,7 @@ class MessageStatus implements Comparable { this.status == other.status; @override - int get hashCode => hashValues(messageId, status); + int get hashCode => Object.hash(messageId, status); @override String toString() => diff --git a/lib/src/web/call_handlers/files.dart b/lib/src/web/call_handlers/files.dart index e105f95..9c47e8a 100644 --- a/lib/src/web/call_handlers/files.dart +++ b/lib/src/web/call_handlers/files.dart @@ -3,7 +3,6 @@ library backendless_files_web; import 'dart:io'; -import 'dart:typed_data'; import 'package:flutter/services.dart'; import 'package:js/js.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index b8e0f9b..d57d142 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,7 +4,7 @@ version: 7.2.5 homepage: https://backendless.com environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.18.0 <3.0.0" flutter: ">=1.10.0" dependencies: