TF-548 Create abstract AutoCompleteDataSource common to all

This commit is contained in:
dab246
2022-05-13 09:25:29 +07:00
committed by Dat H. Pham
parent ae830544de
commit 0fc14a6c76
28 changed files with 100 additions and 98 deletions
@@ -0,0 +1,20 @@
import 'package:equatable/equatable.dart';
import 'package:jmap_dart_client/jmap/account_id.dart';
class AutoCompletePattern with EquatableMixin {
final String word;
final int? limit;
final AccountId? accountId;
AutoCompletePattern({
required this.word,
this.limit,
this.accountId,
});
@override
List<Object?> get props => [word, limit, accountId];
}
+4 -1
View File
@@ -67,4 +67,7 @@ export 'contact/device_contact.dart';
// Upload
export 'upload/file_info.dart';
export 'upload/upload_request.dart';
export 'upload/upload_response.dart';
export 'upload/upload_response.dart';
// AutoComplete
export 'autocomplete/auto_complete_pattern.dart';