InputExtend<T> constructor
const
InputExtend<T> ({
- required BuildSelectPop buildSelectPop,
- required OnChangeInput<
String> onChanged, - InputExtendController? controller,
- BuildCheckedBarStyle? buildCheckedBarStyle,
- FocusNode? focusNode,
- Duration duration = const Duration(milliseconds: 300),
- Curve curve = Curves.linear,
- double? checkedItemWidth = 60,
- double? checkedBarMaxWidth,
- double? checkedBarMinWidth,
- double? checkedBarMaxHeight,
- double? checkedBarMinHeight,
- TextStyle inputTextStyle = const TextStyle(color: Colors.black, fontSize: 16),
- OnCreate? onCreate,
- OnComplete? onComplete,
- InputDecorationStyle? inputDecoration,
- ScrollPhysics? physics,
- List<
T> ? initCheckedValue, - int maxChecked = 100,
- bool enableClickClear = false,
- bool enableMultipleChoice = false,
- bool autoClose = false,
- bool enableHasFocusCallBack = false,
- bool barrierDismissible = true,
- PopBox? popBox,
- double selectPopMarginTop = 0,
- TextEditingController? textEditingController,
- ScrollController? inputScrollController,
- ScrollController? scrollController,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- TextCapitalization textCapitalization = TextCapitalization.none,
- StrutStyle? strutStyle,
- TextAlign textAlign = TextAlign.start,
- TextAlignVertical? textAlignVertical,
- TextDirection? textDirection,
- bool readOnly = false,
- ToolbarOptions? toolbarOptions,
- bool? showCursor,
- bool autofocus = false,
- String obscuringCharacter = '•',
- bool obscureText = false,
- bool autocorrect = true,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- bool enableSuggestions = true,
- int? maxLines = 1,
- int? minLines,
- bool expands = false,
- int? maxLength,
- MaxLengthEnforcement? maxLengthEnforcement,
- VoidCallback? onEditingComplete,
- InputValueChanged<
String> ? onSubmitted, - AppPrivateCommandCallback? onAppPrivateCommand,
- List<
TextInputFormatter> ? inputFormatters, - bool? enabled,
- double cursorWidth = 2.0,
- double? cursorHeight,
- Radius? cursorRadius,
- Color? cursorColor,
- Brightness? keyboardAppearance,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- bool? enableInteractiveSelection,
- TextSelectionControls? selectionControls,
- GestureTapCallback? onTap,
- MouseCursor? mouseCursor,
- InputCounterWidgetBuilder? buildCounter,
- ScrollPhysics? scrollPhysics,
- Iterable<
String> ? autofillHints = const <String>[], - Clip clipBehavior = Clip.hardEdge,
- String? restorationId,
- bool scribbleEnabled = true,
- bool enableIMEPersonalizedLearning = true,
- double? popElevation = 0.0,
- Color? popColor = Colors.transparent,
- Color? popShadowColor,
- Color? popSurfaceTintColor,
- TextStyle? popChildTextStyle,
- BorderRadiusGeometry? popBorderRadius,
- ShapeBorder? popShape,
- Key? key,
Implementation
const InputExtend(
{ required this.buildSelectPop,
required this.onChanged,
this.controller,
this.buildCheckedBarStyle,
this.focusNode,
this.duration = const Duration(milliseconds: 300),
this.curve = Curves.linear,
this.checkedItemWidth = 60,
this.checkedBarMaxWidth,
this.checkedBarMinWidth,
this.checkedBarMaxHeight,
this.checkedBarMinHeight,
this.inputTextStyle = const TextStyle(color: Colors.black, fontSize: 16),
this.onCreate,
this.onComplete,
this.inputDecoration,
this.physics,
this.initCheckedValue,
this.maxChecked = 100,
this.enableClickClear = false,
this.enableMultipleChoice = false,
this.autoClose = false,
this.enableHasFocusCallBack = false,
this.barrierDismissible = true,
this.popBox,
this.selectPopMarginTop = 0,
this.textEditingController,
this.inputScrollController,
this.scrollController,
this.keyboardType,
this.textInputAction,
this.textCapitalization = TextCapitalization.none,
this.strutStyle,
this.textAlign = TextAlign.start,
this.textAlignVertical,
this.textDirection,
this.readOnly = false,
this.toolbarOptions,
this.showCursor,
this.autofocus = false,
this.obscuringCharacter = '•',
this.obscureText = false,
this.autocorrect = true,
this.smartDashesType,
this.smartQuotesType,
this.enableSuggestions = true,
this.maxLines = 1,
this.minLines,
this.expands = false,
this.maxLength,
this.maxLengthEnforcement,
this.onEditingComplete,
this.onSubmitted,
this.onAppPrivateCommand,
this.inputFormatters,
this.enabled,
this.cursorWidth = 2.0,
this.cursorHeight,
this.cursorRadius,
this.cursorColor,
this.keyboardAppearance,
this.scrollPadding = const EdgeInsets.all(20.0),
this.dragStartBehavior = DragStartBehavior.start,
this.enableInteractiveSelection,
this.selectionControls,
this.onTap,
this.mouseCursor,
this.buildCounter,
this.scrollPhysics,
this.autofillHints = const <String>[],
this.clipBehavior = Clip.hardEdge,
this.restorationId,
this.scribbleEnabled = true,
this.enableIMEPersonalizedLearning = true,
this.popElevation = 0.0,
this.popColor = Colors.transparent,
this.popShadowColor,
this.popSurfaceTintColor,
this.popChildTextStyle,
this.popBorderRadius,
this.popShape,
Key? key})
: super(key: key);