parser method
Parses a value into an instance of T.
Implementation
@override
T? parser(T? unparsedValue) {
if (type == AFTextFieldType.email) {
return (unparsedValue as String?)?.trim() as T?;
} else {
return unparsedValue;
}
}
Parses a value into an instance of T.
@override
T? parser(T? unparsedValue) {
if (type == AFTextFieldType.email) {
return (unparsedValue as String?)?.trim() as T?;
} else {
return unparsedValue;
}
}