StringConverter<P extends Object> class abstract

Basic implementation of ValueConverter for string typed FormField such as text field based form field.

Inheritance

Constructors

StringConverter()
Initializes a new StringConverter instance.
StringConverter.fromCallbacks({required Parser<P> parse, SomeConversionResult<P>? defaultValue, ParseFailureMessageProvider? parseFailureMessageProvider, Stringifier<P>? stringify, String? defaultString})
Creates a new StringConverter from specified callbacks.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({ParseFailureMessageProvider? parseFailureMessageProvider, SomeConversionResult<P>? defaultValue, String? defaultString}) StringConverter<P>
Creates a new StringConverter with specified properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toFieldValue(P? value, Locale locale) String?
Converts the property value to form field's value.
inherited
toPropertyValue(String? value, Locale locale) SomeConversionResult<P>
Converts the form field saved value to property's value.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited