JsonInkWell constructor
JsonInkWell({
- Map<
String, dynamic> args = const {}, - JsonWidgetRegistry? registry,
- bool autofocus = false,
- BorderRadius? borderRadius,
- bool canRequestFocus = true,
- ShapeBorder? customBorder,
- bool? enableFeedback = true,
- bool excludeFromSemantics = false,
- Color? focusColor,
- FocusNode? focusNode,
- Color? highlightColor,
- Color? hoverColor,
- Duration? hoverDuration,
- MouseCursor? mouseCursor,
- void onDoubleTap()?,
- void onFocusChange()?,
- void onHighlightChanged()?,
- void onHover()?,
- void onLongPress()?,
- void onSecondaryTap()?,
- void onSecondaryTapCancel()?,
- void onSecondaryTapDown()?,
- void onSecondaryTapUp()?,
- void onTap()?,
- void onTapCancel()?,
- void onTapDown()?,
- void onTapUp()?,
- WidgetStateProperty<
Color?> ? overlayColor, - double? radius,
- Color? splashColor,
- InteractiveInkFeatureFactory? splashFactory,
- WidgetStatesController? statesController,
- JsonWidgetData? child,
Implementation
JsonInkWell({
Map<String, dynamic> args = const {},
JsonWidgetRegistry? registry,
this.autofocus = false,
this.borderRadius,
this.canRequestFocus = true,
this.customBorder,
this.enableFeedback = true,
this.excludeFromSemantics = false,
this.focusColor,
this.focusNode,
this.highlightColor,
this.hoverColor,
this.hoverDuration,
this.mouseCursor,
this.onDoubleTap,
this.onFocusChange,
this.onHighlightChanged,
this.onHover,
this.onLongPress,
this.onSecondaryTap,
this.onSecondaryTapCancel,
this.onSecondaryTapDown,
this.onSecondaryTapUp,
this.onTap,
this.onTapCancel,
this.onTapDown,
this.onTapUp,
this.overlayColor,
this.radius,
this.splashColor,
this.splashFactory,
this.statesController,
this.child,
}) : super(
jsonWidgetArgs: JsonInkWellBuilderModel.fromDynamic(
{
'autofocus': autofocus,
'borderRadius': borderRadius,
'canRequestFocus': canRequestFocus,
'customBorder': customBorder,
'enableFeedback': enableFeedback,
'excludeFromSemantics': excludeFromSemantics,
'focusColor': focusColor,
'focusNode': focusNode,
'highlightColor': highlightColor,
'hoverColor': hoverColor,
'hoverDuration': hoverDuration,
'mouseCursor': mouseCursor,
'onDoubleTap': onDoubleTap,
'onFocusChange': onFocusChange,
'onHighlightChanged': onHighlightChanged,
'onHover': onHover,
'onLongPress': onLongPress,
'onSecondaryTap': onSecondaryTap,
'onSecondaryTapCancel': onSecondaryTapCancel,
'onSecondaryTapDown': onSecondaryTapDown,
'onSecondaryTapUp': onSecondaryTapUp,
'onTap': onTap,
'onTapCancel': onTapCancel,
'onTapDown': onTapDown,
'onTapUp': onTapUp,
'overlayColor': overlayColor,
'radius': radius,
'splashColor': splashColor,
'splashFactory': splashFactory,
'statesController': statesController,
'child': child,
...args,
},
args: args,
registry: registry,
),
jsonWidgetBuilder: () => JsonInkWellBuilder(
args: JsonInkWellBuilderModel.fromDynamic(
{
'autofocus': autofocus,
'borderRadius': borderRadius,
'canRequestFocus': canRequestFocus,
'customBorder': customBorder,
'enableFeedback': enableFeedback,
'excludeFromSemantics': excludeFromSemantics,
'focusColor': focusColor,
'focusNode': focusNode,
'highlightColor': highlightColor,
'hoverColor': hoverColor,
'hoverDuration': hoverDuration,
'mouseCursor': mouseCursor,
'onDoubleTap': onDoubleTap,
'onFocusChange': onFocusChange,
'onHighlightChanged': onHighlightChanged,
'onHover': onHover,
'onLongPress': onLongPress,
'onSecondaryTap': onSecondaryTap,
'onSecondaryTapCancel': onSecondaryTapCancel,
'onSecondaryTapDown': onSecondaryTapDown,
'onSecondaryTapUp': onSecondaryTapUp,
'onTap': onTap,
'onTapCancel': onTapCancel,
'onTapDown': onTapDown,
'onTapUp': onTapUp,
'overlayColor': overlayColor,
'radius': radius,
'splashColor': splashColor,
'splashFactory': splashFactory,
'statesController': statesController,
'child': child,
...args,
},
args: args,
registry: registry,
),
),
jsonWidgetType: JsonInkWellBuilder.kType,
);