fix: Stop long polling to /statistics when app is in background, code cleanup

This commit is contained in:
Anton Stubenbord
2023-02-10 15:49:52 +01:00
parent f04edece16
commit fc0b3240bb
31 changed files with 74 additions and 96 deletions

View File

@@ -1,16 +1,10 @@
import 'package:equatable/equatable.dart';
import 'package:flutter/widgets.dart';
part of 'edit_label_cubit.dart';
@immutable
class EditLabelState<T> extends Equatable {
final Map<int, T> labels;
const EditLabelState({required this.labels});
const EditLabelState({this.labels = const {}});
@override
List<Object> get props => [labels];
}
class EditLabelInitial<T> extends EditLabelState<T> {
const EditLabelInitial() : super(labels: const {});
}