feature(registration): refactor i 2.

This commit is contained in:
mso7nueh
2024-07-14 22:16:59 +03:00
parent da447d6960
commit d49ce2120a
9 changed files with 430 additions and 357 deletions

View File

@@ -1,15 +1,14 @@
///SelectionPopupModel is common model
///used for setting data into dropdowns
class SelectionPopupModel {
int? id;
String title;
dynamic value;
bool isSelected;
import 'package:freezed_annotation/freezed_annotation.dart';
SelectionPopupModel({
this.id,
required this.title,
this.value,
this.isSelected = false,
});
part 'selection_popup_model.freezed.dart';
@freezed
class SelectionPopupModel with _$SelectionPopupModel {
const factory SelectionPopupModel({
int? id,
required String title,
dynamic value,
@Default(false)
bool isSelected,
}) = _SelectionPopupModel;
}