LCOV - code coverage report
Current view: top level - src/model - loading_with_tag.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 8 8 100.0 %
Date: 2021-09-23 09:51:56 Functions: 0 0 -

          Line data    Source code
       1             : /// Just a simple container of
       2             : /// [LoadingWithTag.loading] and [LoadingWithTag.tag]
       3             : class LoadingWithTag {
       4             :   /// Default constructor
       5           2 :   LoadingWithTag({
       6             :     required this.loading,
       7             :     this.tag = '',
       8             :   });
       9             : 
      10             :   /// Is loading flag that is used in async operations
      11             :   final bool loading;
      12             : 
      13             :   /// A tag that holds the intention of a async result
      14             :   final String tag;
      15             : 
      16           2 :   @override
      17           6 :   String toString() => '{loading: $loading, tag: $tag}';
      18             : 
      19           2 :   @override
      20             :   bool operator ==(dynamic other) {
      21           2 :     if (other is! LoadingWithTag) {
      22             :       return false;
      23             :     }
      24             : 
      25          12 :     return other.loading == loading && other.tag == tag;
      26             :   }
      27             : 
      28           2 :   @override
      29          10 :   int get hashCode => tag.hashCode ^ loading.hashCode;
      30             : }

Generated by: LCOV version 1.15