Merge pull request #1722 from famedly/krille/refactor-dart-update
refactor: Deprecations after dart upgrade
This commit is contained in:
commit
47c210817d
|
|
@ -1,2 +1,2 @@
|
||||||
flutter_version=3.10.6
|
flutter_version=3.19.0
|
||||||
dart_version=3.0.6
|
dart_version=3.3.0
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ class Receipt {
|
||||||
const Receipt(this.user, this.time);
|
const Receipt(this.user, this.time);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(dynamic other) => (other is Receipt &&
|
bool operator ==(Object other) => (other is Receipt &&
|
||||||
other.user == user &&
|
other.user == user &&
|
||||||
other.time.millisecondsSinceEpoch == time.millisecondsSinceEpoch);
|
other.time.millisecondsSinceEpoch == time.millisecondsSinceEpoch);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2364,7 +2364,7 @@ class Room {
|
||||||
: setSpaceChild(roomId, via: const []);
|
: setSpaceChild(roomId, via: const []);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(dynamic other) => (other is Room && other.id == id);
|
bool operator ==(Object other) => (other is Room && other.id == id);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode => Object.hashAll([id]);
|
int get hashCode => Object.hashAll([id]);
|
||||||
|
|
|
||||||
|
|
@ -175,7 +175,7 @@ class User extends Event {
|
||||||
room.canChangePowerLevel && powerLevel < room.ownPowerLevel;
|
room.canChangePowerLevel && powerLevel < room.ownPowerLevel;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(dynamic other) => (other is User &&
|
bool operator ==(Object other) => (other is User &&
|
||||||
other.id == id &&
|
other.id == id &&
|
||||||
other.room == room &&
|
other.room == room &&
|
||||||
other.membership == membership);
|
other.membership == membership);
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
// ignore_for_file: deprecated_member_use
|
||||||
|
// ignoring the elementAt deprecation because this would make the SDK
|
||||||
|
// incompatible with older flutter versions than 3.19.0 or dart 3.3.0
|
||||||
|
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:ffi';
|
import 'dart:ffi';
|
||||||
import 'dart:typed_data';
|
import 'dart:typed_data';
|
||||||
|
|
|
||||||
|
|
@ -354,7 +354,7 @@ abstract class SignableKey extends MatrixSignableKey {
|
||||||
String toString() => json.encode(toJson());
|
String toString() => json.encode(toJson());
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(dynamic other) => (other is SignableKey &&
|
bool operator ==(Object other) => (other is SignableKey &&
|
||||||
other.userId == userId &&
|
other.userId == userId &&
|
||||||
other.identifier == identifier);
|
other.identifier == identifier);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue