Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: Updating to Dart 2.18 #28

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
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
2 changes: 0 additions & 2 deletions lib/backendless_sdk.dart
Original file line number Diff line number Diff line change
@@ -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';
2 changes: 1 addition & 1 deletion lib/src/modules/data/geo/line_string.dart
Original file line number Diff line number Diff line change
@@ -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<Point>? points, SpatialReferenceSystem? srs})
: super(srs: srs) {
2 changes: 1 addition & 1 deletion lib/src/modules/data/geo/point.dart
Original file line number Diff line number Diff line change
@@ -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);
2 changes: 1 addition & 1 deletion lib/src/modules/messaging/status.dart
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@ class MessageStatus implements Comparable<MessageStatus> {
this.status == other.status;

@override
int get hashCode => hashValues(messageId, status);
int get hashCode => Object.hash(messageId, status);

@override
String toString() =>
1 change: 0 additions & 1 deletion lib/src/web/call_handlers/files.dart
Original file line number Diff line number Diff line change
@@ -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';
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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: