TestableTextFormField constructor Null safety

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. String? id,
  19. String? initialValue,
  20. List<TextInputFormatter>? inputFormatters,
  21. Brightness? keyboardAppearance,
  22. TextInputType? keyboardType,
  23. int? maxLength,
  24. bool maxLengthEnforced = true,
  25. int? maxLines,
  26. int? minLines,
  27. bool obscureText = false,
  28. String obscuringCharacter = '*',
  29. ValueChanged<String>? onChanged,
  30. VoidCallback? onEditingComplete,
  31. ValueChanged<String>? onFieldSubmitted,
  32. FormFieldSetter<String>? onSaved,
  33. VoidCallback? onTap,
  34. bool readOnly = false,
  35. EdgeInsetsGeometry scrollPadding = const EdgeInsets.all(20.0),
  36. ScrollPhysics? scrollPhysics,
  37. String? scrollableId,
  38. bool? showCursor,
  39. SmartDashesType? smartDashesType,
  40. SmartQuotesType? smartQuotesType,
  41. StrutStyle? strutStyle,
  42. TextStyle? style,
  43. TextAlign textAlign = TextAlign.start,
  44. TextAlignVertical? textAlignVertical,
  45. TextCapitalization textCapitalization = TextCapitalization.none,
  46. TextDirection? textDirection,
  47. TextInputAction? textInputAction,
  48. ToolbarOptions? toolbarOptions,
  49. 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.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,
});