TF-495 Implement linter for mailbox view
This commit is contained in:
@@ -4,7 +4,7 @@ import 'package:jmap_dart_client/jmap/mail/mailbox/mailbox.dart';
|
||||
import 'package:model/model.dart';
|
||||
|
||||
extension ListMailboxExtensions on List<Mailbox> {
|
||||
Tuple2<List<PresentationMailbox>, List<PresentationMailbox>> splitMailboxList(bool test(Mailbox element)) {
|
||||
Tuple2<List<PresentationMailbox>, List<PresentationMailbox>> splitMailboxList(bool Function(Mailbox element) test) {
|
||||
final validBuilder = ListBuilder<PresentationMailbox>();
|
||||
final invalidBuilder = ListBuilder<PresentationMailbox>();
|
||||
forEach((element) {
|
||||
|
||||
@@ -12,7 +12,7 @@ class CreateNewMailboxSuccess extends UIState {
|
||||
}
|
||||
|
||||
class CreateNewMailboxFailure extends FeatureFailure {
|
||||
final exception;
|
||||
final dynamic exception;
|
||||
|
||||
CreateNewMailboxFailure(this.exception);
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ class DeleteMultipleMailboxSuccess extends UIState {
|
||||
}
|
||||
|
||||
class DeleteMultipleMailboxFailure extends FeatureFailure {
|
||||
final exception;
|
||||
final dynamic exception;
|
||||
|
||||
DeleteMultipleMailboxFailure(this.exception);
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ class GetAllMailboxSuccess extends UIState {
|
||||
}
|
||||
|
||||
class GetAllMailboxFailure extends FeatureFailure {
|
||||
final exception;
|
||||
final dynamic exception;
|
||||
|
||||
GetAllMailboxFailure(this.exception);
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ class RefreshChangesAllMailboxSuccess extends UIState {
|
||||
}
|
||||
|
||||
class RefreshChangesAllMailboxFailure extends FeatureFailure {
|
||||
final exception;
|
||||
final dynamic exception;
|
||||
|
||||
RefreshChangesAllMailboxFailure(this.exception);
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ class RenameMailboxSuccess extends UIState {
|
||||
}
|
||||
|
||||
class RenameMailboxFailure extends FeatureFailure {
|
||||
final exception;
|
||||
final dynamic exception;
|
||||
|
||||
RenameMailboxFailure(this.exception);
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ class SearchMailboxSuccess extends UIState {
|
||||
}
|
||||
|
||||
class SearchMailboxFailure extends FeatureFailure {
|
||||
final exception;
|
||||
final dynamic exception;
|
||||
|
||||
SearchMailboxFailure(this.exception);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user