StringField constructor
StringField({
- required String name,
- String? initialValue = '',
- int? maxLines,
- @Deprecated('Fields should not be aware of their context') void onChanged(
- BuildContext context,
- String? value
Implementation
StringField({
required super.name,
super.initialValue = '',
this.maxLines,
@Deprecated('Fields should not be aware of their context') super.onChanged,
}) : super(
type: FieldType.string,
codec: FieldCodec(
toParam: (value) => value,
toValue: (param) => param,
),
);