LCOV - code coverage report
Current view: top level - utils - initialization.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 9 9 100.0 %
Date: 2021-06-18 12:41:16 Functions: 0 0 -

          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>>(RootProvider<Object, Repository<S>> provider,
      12             :             Reader reader) =>
      13           1 :         reader(provider);
      14             : 
      15             : class RepositoryInitializer {}
      16             : 
      17             : class RepositoryInitializerArgs with EquatableMixin {
      18           1 :   RepositoryInitializerArgs(this.remote, this.verbose);
      19             : 
      20             :   final bool? remote;
      21             :   final bool? verbose;
      22             : 
      23           1 :   @override
      24           3 :   List<Object?> get props => [remote, verbose];
      25             : }
      26             : 
      27             : @protected
      28             : mixin NothingMixin {}
      29             : 
      30             : /// This argument holder class is used internally with
      31             : /// Riverpod `family`s.
      32             : class WatchArgs<T> with EquatableMixin {
      33           1 :   WatchArgs({
      34             :     this.id,
      35             :     this.remote,
      36             :     this.params,
      37             :     this.headers,
      38             :     this.syncLocal,
      39             :     this.filterLocal,
      40             :     this.alsoWatch,
      41             :   });
      42             : 
      43             :   final Object? id;
      44             :   final bool? remote;
      45             :   final Map<String, dynamic>? params;
      46             :   final Map<String, String>? headers;
      47             :   final bool? syncLocal;
      48             :   final bool Function(T)? filterLocal;
      49             :   final AlsoWatch<T>? alsoWatch;
      50             : 
      51           1 :   @override
      52           5 :   List<Object?> get props => [id, remote, params, headers];
      53             : }

Generated by: LCOV version 1.15