Skip to content

Refactor: Updating to Dart 2.18 #28

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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
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
2 changes: 0 additions & 2 deletions lib/backendless_sdk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/modules/data/geo/line_string.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/modules/data/geo/point.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion lib/src/modules/messaging/status.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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() =>
Expand Down
1 change: 0 additions & 1 deletion lib/src/web/call_handlers/files.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down