TestableTextFormField constructor
TestableTextFormField({
- AutovalidateMode? autovalidateMode,
- Iterable<
String> ? autofillHints, - bool autofocus = false,
- InputCounterWidgetBuilder? buildCounter,
- EditableTextContextMenuBuilder? contextMenuBuilder,
- TextEditingController? controller,
- Color? cursorColor,
- double? cursorHeight,
- Radius? cursorRadius,
- double cursorWidth = 2.0,
- dynamic decoration = const InputDecoration(),
- bool enableIMEPersonalizedLearning = true,
- bool enableInteractiveSelection = true,
- bool enableSuggestions = true,
- bool enabled = true,
- bool expands = false,
- FocusNode? focusNode,
- TestableGestures? gestures,
- String? id,
- String? initialValue,
- List<
TextInputFormatter> ? inputFormatters, - Brightness? keyboardAppearance,
- TextInputType? keyboardType,
- int? maxLength,
- MaxLengthEnforcement? maxLengthEnforcement,
- int? maxLines,
- int? minLines,
- MouseCursor? mouseCursor,
- bool obscureText = false,
- String obscuringCharacter = '*',
- ValueChanged<
String> ? onChanged, - VoidCallback? onEditingComplete,
- ValueChanged<
String> ? onFieldSubmitted, - FormFieldSetter<
String> ? onSaved, - VoidCallback? onTap,
- TapRegionCallback? onTapOutside,
- bool readOnly = false,
- String? restorationId,
- ScrollController? scrollController,
- EdgeInsetsGeometry scrollPadding = const EdgeInsets.all(20.0),
- ScrollPhysics? scrollPhysics,
- String? scrollableId,
- TextSelectionControls? selectionControls,
- bool? showCursor,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- StrutStyle? strutStyle,
- TextStyle? style,
- TextAlign textAlign = TextAlign.start,
- TextAlignVertical? textAlignVertical,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextDirection? textDirection,
- TextInputAction? textInputAction,
- String? validator()?,
Implementation
TestableTextFormField({
this.autovalidateMode,
this.autofillHints,
this.autofocus = false,
this.buildCounter,
this.contextMenuBuilder,
this.controller,
this.cursorColor,
this.cursorHeight,
this.cursorRadius,
this.cursorWidth = 2.0,
this.decoration = const InputDecoration(),
this.enableIMEPersonalizedLearning = true,
this.enableInteractiveSelection = true,
this.enableSuggestions = true,
this.enabled = true,
this.expands = false,
this.focusNode,
this.gestures,
this.id,
this.initialValue,
this.inputFormatters,
this.keyboardAppearance,
this.keyboardType,
this.maxLength,
this.maxLengthEnforcement,
this.maxLines,
this.minLines,
this.mouseCursor,
this.obscureText = false,
this.obscuringCharacter = '*',
this.onChanged,
this.onEditingComplete,
this.onFieldSubmitted,
this.onSaved,
this.onTap,
this.onTapOutside,
this.readOnly = false,
this.restorationId,
this.scrollController,
this.scrollPadding = const EdgeInsets.all(20.0),
this.scrollPhysics,
this.scrollableId,
this.selectionControls,
this.showCursor,
this.smartDashesType,
this.smartQuotesType,
this.strutStyle,
this.style,
this.textAlign = TextAlign.start,
this.textAlignVertical,
this.textCapitalization = TextCapitalization.none,
this.textDirection,
this.textInputAction,
this.validator,
});