refactor: Update to Dart 3.10 with . shorthands

This commit is contained in:
Christian Kußowski 2025-11-30 12:54:06 +01:00
commit 1ea649f01e
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
167 changed files with 3351 additions and 3912 deletions

View file

@ -20,8 +20,8 @@ extension LocalizedExceptionExtension on Object {
final numString = round < 10
? num.toStringAsFixed(2)
: round < 100
? num.toStringAsFixed(1)
: round.toString();
? num.toStringAsFixed(1)
: round.toString();
return '$numString ${'kMGTPEZY'[i - 1]}B';
}
@ -31,9 +31,9 @@ extension LocalizedExceptionExtension on Object {
]) {
if (this is FileTooBigMatrixException) {
final exception = this as FileTooBigMatrixException;
return L10n.of(context).fileIsTooBigForServer(
_formatFileSize(exception.maxFileSize),
);
return L10n.of(
context,
).fileIsTooBigForServer(_formatFileSize(exception.maxFileSize));
}
if (this is OtherPartyCanNotReceiveMessages) {
return L10n.of(context).otherPartyNotLoggedIn;