MaterialTextFieldData constructor Null safety

MaterialTextFieldData(
  1. {Key? widgetKey,
  2. TextEditingController? controller,
  3. FocusNode? focusNode,
  4. InputDecoration? decoration,
  5. TextInputType? keyboardType,
  6. TextInputAction? textInputAction,
  7. TextCapitalization? textCapitalization,
  8. TextStyle? style,
  9. TextAlign? textAlign,
  10. TextDirection? textDirection,
  11. bool? autofocus,
  12. bool? obscureText,
  13. bool? autocorrect,
  14. int? maxLines,
  15. int? maxLength,
  16. void onChanged(
    1. String
    )?,
  17. void onEditingComplete(
      )?,
    1. void onSubmitted(
      1. String
      )?,
    2. List<TextInputFormatter>? inputFormatters,
    3. bool? enabled,
    4. double? cursorWidth,
    5. Radius? cursorRadius,
    6. Color? cursorColor,
    7. Brightness? keyboardAppearance,
    8. EdgeInsets? scrollPadding,
    9. bool? enableInteractiveSelection,
    10. GestureTapCallback? onTap,
    11. InputCounterWidgetBuilder? buildCounter,
    12. DragStartBehavior? dragStartBehavior,
    13. bool? expands,
    14. int? minLines,
    15. ScrollPhysics? scrollPhysics,
    16. StrutStyle? strutStyle,
    17. ScrollController? scrollController,
    18. bool? readOnly,
    19. bool? showCursor,
    20. TextAlignVertical? textAlignVertical,
    21. ToolbarOptions? toolbarOptions,
    22. bool? enableSuggestions,
    23. SmartDashesType? smartDashesType,
    24. SmartQuotesType? smartQuotesType,
    25. BoxHeightStyle? selectionHeightStyle,
    26. BoxWidthStyle? selectionWidthStyle,
    27. String? obscuringCharacter,
    28. Iterable<String>? autofillHints,
    29. MouseCursor? mouseCursor,
    30. AppPrivateCommandCallback? onAppPrivateCommand,
    31. double? cursorHeight,
    32. String? restorationId,
    33. MaxLengthEnforcement? maxLengthEnforcement,
    34. TextSelectionControls? selectionControls}
    )

    Implementation

    MaterialTextFieldData({
      this.widgetKey,
      this.controller,
      this.focusNode,
      this.decoration,
      this.keyboardType,
      this.textInputAction,
      this.textCapitalization,
      this.style,
      this.textAlign,
      this.textDirection,
      this.autofocus,
      this.obscureText,
      this.autocorrect,
      this.maxLines,
      this.maxLength,
      this.onChanged,
      this.onEditingComplete,
      this.onSubmitted,
      this.inputFormatters,
      this.enabled,
      this.cursorWidth,
      this.cursorRadius,
      this.cursorColor,
      this.keyboardAppearance,
      this.scrollPadding,
      this.enableInteractiveSelection,
      this.onTap,
      this.buildCounter,
      this.dragStartBehavior,
      this.expands,
      this.minLines,
      this.scrollPhysics,
      this.strutStyle,
      this.scrollController,
      this.readOnly,
      this.showCursor,
      this.textAlignVertical,
      this.toolbarOptions,
      this.enableSuggestions,
      this.smartDashesType,
      this.smartQuotesType,
      this.selectionHeightStyle,
      this.selectionWidthStyle,
      this.obscuringCharacter,
      this.autofillHints,
      this.mouseCursor,
      this.onAppPrivateCommand,
      this.cursorHeight,
      this.restorationId,
      this.maxLengthEnforcement,
      this.selectionControls,
    });