MaskedTextField constructor

MaskedTextField({
  1. Key? key,
  2. String? initialValue,
  3. String? mask,
  4. Map<String, RegExp>? maskFilter,
  5. TextAlign textAlign = TextAlign.start,
  6. bool autocorrect = true,
  7. Iterable<String>? autofillHints = const [],
  8. bool autofocus = false,
  9. InputCounterWidgetBuilder? buildCounter,
  10. TextEditingController? controller,
  11. Color? cursorColor,
  12. double? cursorHeight,
  13. Radius? cursorRadius,
  14. double cursorWidth = 2.0,
  15. InputDecoration? decoration,
  16. bool? enabled,
  17. bool enableIMEPersonalizedLearning = true,
  18. bool? enableInteractiveSelection,
  19. bool enableSuggestions = true,
  20. bool expands = false,
  21. FocusNode? focusNode,
  22. List<TextInputFormatter>? inputFormatters,
  23. Brightness? keyboardAppearance,
  24. TextInputType? keyboardType,
  25. int? maxLength,
  26. MaxLengthEnforcement? maxLengthEnforcement,
  27. int? maxLines,
  28. int? minLines,
  29. MouseCursor? mouseCursor,
  30. bool obscureText = false,
  31. String obscuringCharacter = "*",
  32. ValueChanged<String>? onChanged,
  33. VoidCallback? onEditingComplete,
  34. GestureTapCallback? onTap,
  35. bool readOnly = false,
  36. String? restorationId,
  37. ScrollController? scrollController,
  38. EdgeInsets scrollPadding = const EdgeInsets.all(20),
  39. ScrollPhysics? scrollPhysics,
  40. TextSelectionControls? selectionControls,
  41. bool? showCursor,
  42. SmartDashesType? smartDashesType,
  43. SmartQuotesType? smartQuotesType,
  44. StrutStyle? strutStyle,
  45. TextStyle? style,
  46. TextAlignVertical? textAlignVertical,
  47. TextCapitalization textCapitalization = TextCapitalization.none,
  48. TextDirection? textDirection,
  49. TextInputAction? textInputAction,
  50. ToolbarOptions? toolbarOptions,
  51. AutovalidateMode? autovalidateMode,
  52. ValueChanged<String>? onFieldSubmitted,
  53. FormFieldSetter<String>? onSaved,
  54. FormFieldValidator<String>? validator,
})

Implementation

MaskedTextField({
  Key? key,
  String? initialValue,
  String? mask,
  Map<String, RegExp>? maskFilter,
  TextAlign textAlign = TextAlign.start,
  bool autocorrect = true,
  Iterable<String>? autofillHints = const [],
  bool autofocus = false,
  InputCounterWidgetBuilder? buildCounter,
  TextEditingController? controller,
  Color? cursorColor,
  double? cursorHeight,
  Radius? cursorRadius,
  double cursorWidth = 2.0,
  InputDecoration? decoration,
  bool? enabled,
  bool enableIMEPersonalizedLearning = true,
  bool? enableInteractiveSelection,
  bool enableSuggestions = true,
  bool expands = false,
  FocusNode? focusNode,
  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,
  GestureTapCallback? onTap,
  bool readOnly = false,
  String? restorationId,
  ScrollController? scrollController,
  EdgeInsets scrollPadding = const EdgeInsets.all(20),
  ScrollPhysics? scrollPhysics,
  TextSelectionControls? selectionControls,
  bool? showCursor,
  SmartDashesType? smartDashesType,
  SmartQuotesType? smartQuotesType,
  StrutStyle? strutStyle,
  TextStyle? style,
  TextAlignVertical? textAlignVertical,
  TextCapitalization textCapitalization = TextCapitalization.none,
  TextDirection? textDirection,
  TextInputAction? textInputAction,
  ToolbarOptions? toolbarOptions,
  AutovalidateMode? autovalidateMode,
  ValueChanged<String>? onFieldSubmitted,
  FormFieldSetter<String>? onSaved,
  FormFieldValidator<String>? validator,
}) : super(
          key: key,
          textAlign: textAlign,
          autocorrect: autocorrect,
          autofillHints: autofillHints,
          autofocus: autofocus,
          buildCounter: buildCounter,
          controller: controller,
          cursorColor: cursorColor,
          cursorHeight: cursorHeight,
          cursorRadius: cursorRadius,
          cursorWidth: cursorWidth,
          decoration: decoration,
          enabled: enabled,
          enableIMEPersonalizedLearning: enableIMEPersonalizedLearning,
          enableInteractiveSelection: enableInteractiveSelection,
          enableSuggestions: enableSuggestions,
          expands: expands,
          focusNode: focusNode,
          inputFormatters: [
            ...?inputFormatters,
            MaskTextInputFormatter(
              mask: mask,
              filter: maskFilter
            )
          ],
          keyboardAppearance: keyboardAppearance,
          keyboardType: keyboardType,
          maxLength: maxLength,
          maxLengthEnforcement: maxLengthEnforcement,
          maxLines: maxLines,
          minLines: minLines,
          mouseCursor: mouseCursor,
          obscureText: obscureText,
          obscuringCharacter: obscuringCharacter,
          onChanged: onChanged,
          onEditingComplete: onEditingComplete,
          onTap: onTap,
          readOnly: readOnly,
          restorationId: restorationId,
          scrollController: scrollController,
          scrollPadding: scrollPadding,
          scrollPhysics: scrollPhysics,
          selectionControls: selectionControls,
          showCursor: showCursor,
          smartDashesType: smartDashesType,
          smartQuotesType: smartQuotesType,
          strutStyle: strutStyle,
          style: style,
          textAlignVertical: textAlignVertical,
          textCapitalization: textCapitalization,
          textDirection: textDirection,
          textInputAction: textInputAction,
          toolbarOptions: toolbarOptions,
          autovalidateMode: autovalidateMode,
          initialValue: initialValue,
          onFieldSubmitted: onFieldSubmitted,
          onSaved: onSaved,
          validator: validator
);