ListFieldBloc constructor

ListFieldBloc({
  1. required FieldChanged onEdit,
  2. required DraftService draftService,
  3. DynamicFieldItem? item,
  4. 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!);
  }
}