const
Widget.textFormField(- {Key? key,
- String? initialValue,
- FormStringField? field,
- @Default(InputDecoration()) InputDecoration? decoration,
- TextInputType? keyboardType,
- @Default(TextCapitalization.none) TextCapitalization textCapitalization,
- TextInputAction? textInputAction,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextDirection? textDirection,
- @Default(TextAlign.start) TextAlign textAlign,
- TextAlignVertical? textAlignVertical,
- @Default(false) bool autofocus,
- @Default(false) bool readOnly,
- bool? showCursor,
- @Default('•') String obscuringCharacter,
- @Default(false) bool obscureText,
- @Default(true) bool autocorrect,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- @Default(true) bool enableSuggestions,
- MaxLengthEnforcement? maxLengthEnforcement,
- @Default(1) int? maxLines,
- int? minLines,
- @Default(false) bool expands,
- int? maxLength,
- Callback? onTap,
- Map<String, String>? validatorMessages,
- Callback? onEditingComplete,
- List<TextInputFormatter>? inputFormatters,
- bool? enabled,
- @Default(2.0) double cursorWidth,
- double? cursorHeight,
- Radius? cursorRadius,
- Color? cursorColor,
- Brightness? keyboardAppearance,
- @Default(EdgeInsets.all(20.0)) EdgeInsets scrollPadding,
- bool? enableInteractiveSelection,
- ScrollPhysics? scrollPhysics,
- Iterable<String>? autofillHints,
- AutovalidateMode? autovalidateMode,
- String? restorationId,
- @Default(true) bool enableIMEPersonalizedLearning,
- MouseCursor? mouseCursor}
)
Implementation
const factory Widget.textFormField({
Key? key,
String? initialValue,
FormStringField? field,
@Default(InputDecoration()) InputDecoration? decoration,
TextInputType? keyboardType,
@Default(TextCapitalization.none) TextCapitalization textCapitalization,
TextInputAction? textInputAction,
TextStyle? style,
StrutStyle? strutStyle,
TextDirection? textDirection,
@Default(TextAlign.start) TextAlign textAlign,
TextAlignVertical? textAlignVertical,
@Default(false) bool autofocus,
@Default(false) bool readOnly,
bool? showCursor,
@Default('•') String obscuringCharacter,
@Default(false) bool obscureText,
@Default(true) bool autocorrect,
SmartDashesType? smartDashesType,
SmartQuotesType? smartQuotesType,
@Default(true) bool enableSuggestions,
MaxLengthEnforcement? maxLengthEnforcement,
@Default(1) int? maxLines,
int? minLines,
@Default(false) bool expands,
int? maxLength,
Callback? onTap,
Map<String, String>? validatorMessages,
Callback? onEditingComplete,
List<TextInputFormatter>? inputFormatters,
bool? enabled,
@Default(2.0) double cursorWidth,
double? cursorHeight,
Radius? cursorRadius,
Color? cursorColor,
Brightness? keyboardAppearance,
@Default(EdgeInsets.all(20.0)) EdgeInsets scrollPadding,
bool? enableInteractiveSelection,
ScrollPhysics? scrollPhysics,
Iterable<String>? autofillHints,
AutovalidateMode? autovalidateMode,
String? restorationId,
@Default(true) bool enableIMEPersonalizedLearning,
MouseCursor? mouseCursor,
}) = TextFormField;