refactor: Update to Dart 3.10 with . shorthands
This commit is contained in:
parent
75a37f3f7c
commit
1ea649f01e
167 changed files with 3351 additions and 3912 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue