refactor: Omit local types

This commit is contained in:
Krille 2024-07-04 15:42:00 +02:00
commit ef5ea57c58
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
7 changed files with 10 additions and 9 deletions

View file

@ -64,7 +64,7 @@ class SendFileDialogState extends State<SendFileDialog> {
@override
Widget build(BuildContext context) {
var sendStr = L10n.of(context)!.sendFile;
final bool allFilesAreImages =
final allFilesAreImages =
widget.files.every((file) => file is MatrixImageFile);
final sizeString = widget.files
.fold<double>(0, (p, file) => p + file.bytes.length)