FieldText class

@FieldText() decorator is used to decorate each Text, Number, Email, password or Phone field in the form. All properties are optional.

Constructors

FieldText({String? label, bool? autocorrect, bool? autofocus, String? autofillHints, String? autovalidateMode, String? buildCounter, String? cursorColor, String? cursorRadius, String? cursorWidth, String? hint, bool? enabled, String? enableIMEPersonalizedLearning, bool? enableInteractiveSelection, bool? enableSuggestions, bool? expands, String? focusNode, dynamic initialValue, Map<String, dynamic>? inputDecoration, List<String>? inputFormatters, String? keyboardAppearance, String? keyboardType, int? maxLength, String? maxLengthEnforcement, int? maxLines, int? minLines, String? mouseCursor, bool? obscureText, String? obscuringCharacter, String? onChanged, bool? readOnly, String? scrollPadding, String? type, List<Map<FieldValidator, dynamic>>? validators, double? sequence})
const

Properties

autocorrect bool?
final
autofillHints String?
final
autofocus bool?
final
autovalidateMode String?
final
buildCounter String?
final
cursorColor String?
final
cursorRadius String?
final
cursorWidth String?
final
enabled bool?
final
enableIMEPersonalizedLearning String?
final
enableInteractiveSelection bool?
final
enableSuggestions bool?
final
expands bool?
final
focusNode String?
final
hashCode int
The hash code for this object.
no setterinherited
hint String?
final
initialValue → dynamic
Default value of the field
final
inputDecoration Map<String, dynamic>?
inputDecoration map of properties tto decorate the field. for example { 'labelText': 'Label Text', 'hintText': 'Hint Text', 'errorText': 'Error Text', 'suffixIcon': Icon(Icons.search), 'border: OutlineInputBorder(), }
final
inputFormatters List<String>?
final
keyboardAppearance String?
final
keyboardType String?
final
label String?
final
maxLength int?
final
maxLengthEnforcement String?
final
maxLines int?
final
minLines int?
final
mouseCursor String?
final
obscureText bool?
true for password field
final
obscuringCharacter String?
final
onChanged String?
final
readOnly bool?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollPadding String?
final
sequence double?
The sequence of the field in the form. If no sequence is provided, no specific order will be applied to the fields.
final
type String?
type Default is 'text', can be 'number', 'email', 'password', 'phone'
final
validators List<Map<FieldValidator, dynamic>>?
Several predefined validators can be used to validate the field. For example, required , email please see the validators reference If you want to use your own validator, you can use custom type and add your own validator function. The function must return a null if the field is valid or a string with the error message if the field is invalid.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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