diff --git a/.github/workflows/versions.env b/.github/workflows/versions.env index 08f97c5e..771a477f 100644 --- a/.github/workflows/versions.env +++ b/.github/workflows/versions.env @@ -1,2 +1,2 @@ -flutter_version=3.10.6 -dart_version=3.0.6 +flutter_version=3.19.0 +dart_version=3.3.0 diff --git a/lib/src/models/receipts.dart b/lib/src/models/receipts.dart index 1130740c..c43fe3c1 100644 --- a/lib/src/models/receipts.dart +++ b/lib/src/models/receipts.dart @@ -44,7 +44,7 @@ class Receipt { const Receipt(this.user, this.time); @override - bool operator ==(dynamic other) => (other is Receipt && + bool operator ==(Object other) => (other is Receipt && other.user == user && other.time.millisecondsSinceEpoch == time.millisecondsSinceEpoch); diff --git a/lib/src/room.dart b/lib/src/room.dart index 9a067fbf..5c4a6ec0 100644 --- a/lib/src/room.dart +++ b/lib/src/room.dart @@ -2364,7 +2364,7 @@ class Room { : setSpaceChild(roomId, via: const []); @override - bool operator ==(dynamic other) => (other is Room && other.id == id); + bool operator ==(Object other) => (other is Room && other.id == id); @override int get hashCode => Object.hashAll([id]); diff --git a/lib/src/user.dart b/lib/src/user.dart index 5948e69e..5cd4563f 100644 --- a/lib/src/user.dart +++ b/lib/src/user.dart @@ -175,7 +175,7 @@ class User extends Event { room.canChangePowerLevel && powerLevel < room.ownPowerLevel; @override - bool operator ==(dynamic other) => (other is User && + bool operator ==(Object other) => (other is User && other.id == id && other.room == room && other.membership == membership); diff --git a/lib/src/utils/crypto/native.dart b/lib/src/utils/crypto/native.dart index 8ef84ef2..1ef0613d 100644 --- a/lib/src/utils/crypto/native.dart +++ b/lib/src/utils/crypto/native.dart @@ -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:ffi'; import 'dart:typed_data'; diff --git a/lib/src/utils/device_keys_list.dart b/lib/src/utils/device_keys_list.dart index b4a26585..db235c2a 100644 --- a/lib/src/utils/device_keys_list.dart +++ b/lib/src/utils/device_keys_list.dart @@ -354,7 +354,7 @@ abstract class SignableKey extends MatrixSignableKey { String toString() => json.encode(toJson()); @override - bool operator ==(dynamic other) => (other is SignableKey && + bool operator ==(Object other) => (other is SignableKey && other.userId == userId && other.identifier == identifier);