StringField constructor

StringField({
  1. required String name,
  2. String? initialValue = '',
  3. int? maxLines,
  4. @Deprecated('Fields should not be aware of their context') void onChanged(
    1. BuildContext context,
    2. 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,
        ),
      );