mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
initialize with const
This commit is contained in:
@ -10,16 +10,16 @@ abstract class AssignTagModelEvent extends Equatable {
|
||||
}
|
||||
|
||||
class InitializeTagModels extends AssignTagModelEvent {
|
||||
final List<TagModel>? initialTags;
|
||||
final List<TagModel> initialTags;
|
||||
final List<SelectedProduct> addedProducts;
|
||||
|
||||
const InitializeTagModels({
|
||||
required this.initialTags,
|
||||
this.initialTags = const [],
|
||||
required this.addedProducts,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object> get props => [initialTags ?? [], addedProducts];
|
||||
List<Object> get props => [initialTags, addedProducts];
|
||||
}
|
||||
|
||||
class UpdateTag extends AssignTagModelEvent {
|
||||
|
Reference in New Issue
Block a user