mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-07 11:15:49 -06:00
WIP - More decoupling of data layer from ui layer
This commit is contained in:
16
lib/features/edit_label/cubit/edit_label_state.dart
Normal file
16
lib/features/edit_label/cubit/edit_label_state.dart
Normal file
@@ -0,0 +1,16 @@
|
||||
import 'package:equatable/equatable.dart';
|
||||
import 'package:flutter/widgets.dart';
|
||||
|
||||
@immutable
|
||||
class EditLabelState<T> extends Equatable {
|
||||
final Map<int, T> labels;
|
||||
|
||||
const EditLabelState({required this.labels});
|
||||
|
||||
@override
|
||||
List<Object> get props => [labels];
|
||||
}
|
||||
|
||||
class EditLabelInitial<T> extends EditLabelState<T> {
|
||||
const EditLabelInitial() : super(labels: const {});
|
||||
}
|
||||
Reference in New Issue
Block a user