JsonTextButton constructor

JsonTextButton({
  1. Map<String, dynamic> args = const {},
  2. JsonWidgetRegistry? registry,
  3. bool autofocus = false,
  4. Clip? clipBehavior,
  5. FocusNode? focusNode,
  6. IconAlignment iconAlignment = IconAlignment.start,
  7. bool? isSemanticButton = true,
  8. void onFocusChange(
    1. bool
    )?,
  9. void onHover(
    1. bool
    )?,
  10. void onLongPress()?,
  11. required void onPressed()?,
  12. WidgetStatesController? statesController,
  13. ButtonStyle? style,
  14. required JsonWidgetData child,
})

Implementation

JsonTextButton({
  Map<String, dynamic> args = const {},
  JsonWidgetRegistry? registry,
  this.autofocus = false,
  this.clipBehavior,
  this.focusNode,
  this.iconAlignment = IconAlignment.start,
  this.isSemanticButton = true,
  this.onFocusChange,
  this.onHover,
  this.onLongPress,
  required this.onPressed,
  this.statesController,
  this.style,
  required this.child,
}) : super(
        jsonWidgetArgs: JsonTextButtonBuilderModel.fromDynamic(
          {
            'autofocus': autofocus,
            'clipBehavior': clipBehavior,
            'focusNode': focusNode,
            'iconAlignment': iconAlignment,
            'isSemanticButton': isSemanticButton,
            'onFocusChange': onFocusChange,
            'onHover': onHover,
            'onLongPress': onLongPress,
            'onPressed': onPressed,
            'statesController': statesController,
            'style': style,
            'child': child,
            ...args,
          },
          args: args,
          registry: registry,
        ),
        jsonWidgetBuilder: () => JsonTextButtonBuilder(
          args: JsonTextButtonBuilderModel.fromDynamic(
            {
              'autofocus': autofocus,
              'clipBehavior': clipBehavior,
              'focusNode': focusNode,
              'iconAlignment': iconAlignment,
              'isSemanticButton': isSemanticButton,
              'onFocusChange': onFocusChange,
              'onHover': onHover,
              'onLongPress': onLongPress,
              'onPressed': onPressed,
              'statesController': statesController,
              'style': style,
              'child': child,
              ...args,
            },
            args: args,
            registry: registry,
          ),
        ),
        jsonWidgetType: JsonTextButtonBuilder.kType,
      );