TF-495 Implement linter for mailbox view
This commit is contained in:
@@ -3,9 +3,6 @@ import 'package:tmail_ui_user/features/mailbox/data/model/mailbox_cache.dart';
|
||||
|
||||
extension ListMailboxCacheExtension on List<MailboxCache> {
|
||||
Map<String, MailboxCache> toMap() {
|
||||
return Map<String, MailboxCache>.fromIterable(
|
||||
this,
|
||||
key: (mailboxCache) => mailboxCache.id,
|
||||
value: (mailboxCache) => mailboxCache);
|
||||
return { for (var mailboxCache in this) mailboxCache.id : mailboxCache };
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user