JsonIconButton constructor

JsonIconButton({
  1. Map<String, dynamic> args = const {},
  2. JsonWidgetRegistry? registry,
  3. AlignmentGeometry? alignment,
  4. bool autofocus = false,
  5. Color? color,
  6. BoxConstraints? constraints,
  7. Color? disabledColor,
  8. bool? enableFeedback,
  9. Color? focusColor,
  10. FocusNode? focusNode,
  11. Color? highlightColor,
  12. Color? hoverColor,
  13. required JsonWidgetData icon,
  14. double? iconSize,
  15. bool? isSelected,
  16. MouseCursor? mouseCursor,
  17. required void onPressed()?,
  18. EdgeInsetsGeometry? padding,
  19. JsonWidgetData? selectedIcon,
  20. Color? splashColor,
  21. double? splashRadius,
  22. ButtonStyle? style,
  23. String? tooltip,
  24. VisualDensity? visualDensity,
})

Implementation

JsonIconButton({
  Map<String, dynamic> args = const {},
  JsonWidgetRegistry? registry,
  this.alignment,
  this.autofocus = false,
  this.color,
  this.constraints,
  this.disabledColor,
  this.enableFeedback,
  this.focusColor,
  this.focusNode,
  this.highlightColor,
  this.hoverColor,
  required this.icon,
  this.iconSize,
  this.isSelected,
  this.mouseCursor,
  required this.onPressed,
  this.padding,
  this.selectedIcon,
  this.splashColor,
  this.splashRadius,
  this.style,
  this.tooltip,
  this.visualDensity,
}) : super(
        jsonWidgetArgs: JsonIconButtonBuilderModel.fromDynamic(
          {
            'alignment': alignment,
            'autofocus': autofocus,
            'color': color,
            'constraints': constraints,
            'disabledColor': disabledColor,
            'enableFeedback': enableFeedback,
            'focusColor': focusColor,
            'focusNode': focusNode,
            'highlightColor': highlightColor,
            'hoverColor': hoverColor,
            'icon': icon,
            'iconSize': iconSize,
            'isSelected': isSelected,
            'mouseCursor': mouseCursor,
            'onPressed': onPressed,
            'padding': padding,
            'selectedIcon': selectedIcon,
            'splashColor': splashColor,
            'splashRadius': splashRadius,
            'style': style,
            'tooltip': tooltip,
            'visualDensity': visualDensity,
            ...args,
          },
          args: args,
          registry: registry,
        ),
        jsonWidgetBuilder: () => JsonIconButtonBuilder(
          args: JsonIconButtonBuilderModel.fromDynamic(
            {
              'alignment': alignment,
              'autofocus': autofocus,
              'color': color,
              'constraints': constraints,
              'disabledColor': disabledColor,
              'enableFeedback': enableFeedback,
              'focusColor': focusColor,
              'focusNode': focusNode,
              'highlightColor': highlightColor,
              'hoverColor': hoverColor,
              'icon': icon,
              'iconSize': iconSize,
              'isSelected': isSelected,
              'mouseCursor': mouseCursor,
              'onPressed': onPressed,
              'padding': padding,
              'selectedIcon': selectedIcon,
              'splashColor': splashColor,
              'splashRadius': splashRadius,
              'style': style,
              'tooltip': tooltip,
              'visualDensity': visualDensity,
              ...args,
            },
            args: args,
            registry: registry,
          ),
        ),
        jsonWidgetType: JsonIconButtonBuilder.kType,
      );