FieldBlocState<Value, Suggestion, ExtraData> constructor

FieldBlocState<Value, Suggestion, ExtraData>({
  1. required bool isValueChanged,
  2. required Value initialValue,
  3. required Value updatedValue,
  4. required Value value,
  5. required Object? error,
  6. required bool isDirty,
  7. required Suggestions<Suggestion>? suggestions,
  8. required bool isValidated,
  9. required bool isValidating,
  10. required FormBloc? formBloc,
  11. required String name,
  12. required dynamic toJson(
    1. Value value
    )?,
  13. required ExtraData extraData,
})

Implementation

FieldBlocState({
  required this.isValueChanged,
  required this.initialValue,
  required this.updatedValue,
  required this.value,
  required this.error,
  required this.isDirty,
  required this.suggestions,
  required this.isValidated,
  required this.isValidating,
  required this.formBloc,
  required this.name,
  required dynamic Function(Value value)? toJson,
  required this.extraData,
}) : _toJson = toJson ?? ((value) => value);