Line data Source code
1 : part of flutter_data; 2 : 3 : typedef ConfigureRepositoryLocalStorage = Override Function( 4 : {FutureFn<String>? baseDirFn, List<int>? encryptionKey, bool? clear}); 5 : 6 : typedef RepositoryInitializerProvider = FutureProvider<RepositoryInitializer> 7 : Function({bool? remote, bool? verbose}); 8 : 9 : /// ONLY FOR FLUTTER DATA INTERNAL USE 10 2 : var internalLocatorFn = 11 1 : <S extends DataModel<S>>(Provider<Repository<S>> provider, Reader reader) => 12 : reader(provider); 13 : 14 : class RepositoryInitializer {} 15 : 16 : class RepositoryInitializerArgs with EquatableMixin { 17 1 : RepositoryInitializerArgs(this.remote, this.verbose); 18 : 19 : final bool? remote; 20 : final bool? verbose; 21 : 22 1 : @override 23 3 : List<Object?> get props => [remote, verbose]; 24 : } 25 : 26 : @protected 27 : mixin NothingMixin {} 28 : 29 : /// This argument holder class is used internally with 30 : /// Riverpod `family`s. 31 : class WatchArgs<T> with EquatableMixin { 32 1 : WatchArgs({ 33 : this.id, 34 : this.remote, 35 : this.params, 36 : this.headers, 37 : this.syncLocal, 38 : this.alsoWatch, 39 : }); 40 : 41 : final Object? id; 42 : final bool? remote; 43 : final Map<String, dynamic>? params; 44 : final Map<String, String>? headers; 45 : final bool? syncLocal; 46 : final AlsoWatch<T>? alsoWatch; 47 : 48 1 : @override 49 5 : List<Object?> get props => [id, remote, params, headers]; 50 : }