TestableTextFormField constructor

TestableTextFormField({
  1. bool autocorrect = true,
  2. Iterable<String>? autofillHints,
  3. bool autofocus = false,
  4. @Deprecated('Use [autovalidateMode] instead') bool? autovalidate,
  5. AutovalidateMode? autovalidateMode,
  6. InputCounterWidgetBuilder? buildCounter,
  7. TextEditingController? controller,
  8. Color? cursorColor,
  9. double? cursorHeight,
  10. Radius? cursorRadius,
  11. double cursorWidth = 2.0,
  12. dynamic decoration = const InputDecoration(),
  13. bool enableInteractiveSelection = true,
  14. bool enableSuggestions = true,
  15. bool enabled = true,
  16. bool expands = false,
  17. FocusNode? focusNode,
  18. TestableGestures? gestures,
  19. String? id,
  20. String? initialValue,
  21. List<TextInputFormatter>? inputFormatters,
  22. Brightness? keyboardAppearance,
  23. TextInputType? keyboardType,
  24. int? maxLength,
  25. bool maxLengthEnforced = true,
  26. int? maxLines,
  27. int? minLines,
  28. bool obscureText = false,
  29. String obscuringCharacter = '*',
  30. ValueChanged<String>? onChanged,
  31. VoidCallback? onEditingComplete,
  32. ValueChanged<String>? onFieldSubmitted,
  33. FormFieldSetter<String>? onSaved,
  34. VoidCallback? onTap,
  35. bool readOnly = false,
  36. EdgeInsetsGeometry scrollPadding = const EdgeInsets.all(20.0),
  37. ScrollPhysics? scrollPhysics,
  38. String? scrollableId,
  39. bool? showCursor,
  40. SmartDashesType? smartDashesType,
  41. SmartQuotesType? smartQuotesType,
  42. StrutStyle? strutStyle,
  43. TextStyle? style,
  44. TextAlign textAlign = TextAlign.start,
  45. TextAlignVertical? textAlignVertical,
  46. TextCapitalization textCapitalization = TextCapitalization.none,
  47. TextDirection? textDirection,
  48. TextInputAction? textInputAction,
  49. ToolbarOptions? toolbarOptions,
  50. String? validator(
    1. String?
    )?,
})

Implementation

TestableTextFormField({
  this.autocorrect = true,
  this.autofillHints,
  this.autofocus = false,
  // ignore: deprecated_member_use_from_same_package
  @Deprecated('Use [autovalidateMode] instead') this.autovalidate,
  this.autovalidateMode,
  this.buildCounter,
  this.controller,
  this.cursorColor,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorWidth = 2.0,
  this.decoration = const InputDecoration(),
  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.maxLengthEnforced = true,
  this.maxLines,
  this.minLines,
  this.obscureText = false,
  this.obscuringCharacter = '*',
  this.onChanged,
  this.onEditingComplete,
  this.onFieldSubmitted,
  this.onSaved,
  this.onTap,
  this.readOnly = false,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.scrollPhysics,
  this.scrollableId,
  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.toolbarOptions,
  this.validator,
});