ListFieldBloc constructor
ListFieldBloc({
- required FieldChanged onEdit,
- required DraftService draftService,
- DynamicFieldItem? item,
- StructuredFieldItem? structuredItem,
Implementation
ListFieldBloc({
required this.onEdit,
required super.draftService,
this.item,
this.structuredItem,
}) : super(state: BaseDocumentState.empty()) {
if (item != null) {
_initStateWithItem(item!);
} else if (structuredItem != null) {
_initStateWithStructuredItem(structuredItem!);
}
}