Line data Source code
1 : part of 'loading_bloc.dart'; 2 : 3 : class _TagCountTuple { 4 1 : _TagCountTuple({ 5 : required this.tag, 6 : required this.count, 7 : this.initial = true, 8 : }); 9 : 10 : final String tag; 11 : final int count; 12 : 13 : ///TODO: come up with a better name 14 : bool initial; 15 : 16 1 : _TagCountTuple copyWith({ 17 : required bool incrementCount, 18 : }) => 19 1 : _TagCountTuple( 20 4 : count: incrementCount ? count + 1 : count - 1, 21 1 : tag: tag, 22 : initial: false, 23 : ); 24 : 25 0 : @override 26 0 : String toString() => '{tag: $tag, count: $count}'; 27 : }