mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-13 20:23:16 +00:00
32 lines
567 B
Dart
32 lines
567 B
Dart
|
part of 'metrics_cubit.dart';
|
||
|
|
||
|
abstract class MetricsState extends Equatable {
|
||
|
const MetricsState();
|
||
|
|
||
|
abstract final Period period;
|
||
|
}
|
||
|
|
||
|
class MetricsLoading extends MetricsState {
|
||
|
const MetricsLoading(this.period);
|
||
|
@override
|
||
|
final Period period;
|
||
|
|
||
|
@override
|
||
|
List<Object?> get props => [period];
|
||
|
}
|
||
|
|
||
|
class MetricsLoaded extends MetricsState {
|
||
|
const MetricsLoaded({
|
||
|
required this.period,
|
||
|
required this.metrics,
|
||
|
});
|
||
|
|
||
|
@override
|
||
|
final Period period;
|
||
|
|
||
|
final ServerMetrics metrics;
|
||
|
|
||
|
@override
|
||
|
List<Object?> get props => [period, metrics];
|
||
|
}
|