FieldBlocState<Value, Suggestion, ExtraData> constructor
FieldBlocState<Value, Suggestion, ExtraData> ({
- required bool isValueChanged,
- required Value initialValue,
- required Value updatedValue,
- required Value value,
- required Object? error,
- required bool isDirty,
- required Suggestions<
Suggestion> ? suggestions, - required bool isValidated,
- required bool isValidating,
- required FormBloc? formBloc,
- required String name,
- required dynamic toJson(
- Value value
- 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);