JsonIconButton constructor
JsonIconButton({
- Map<
String, dynamic> args = const {}, - JsonWidgetRegistry? registry,
- AlignmentGeometry? alignment,
- bool autofocus = false,
- Color? color,
- BoxConstraints? constraints,
- Color? disabledColor,
- bool? enableFeedback,
- Color? focusColor,
- FocusNode? focusNode,
- Color? highlightColor,
- Color? hoverColor,
- required JsonWidgetData icon,
- double? iconSize,
- bool? isSelected,
- MouseCursor? mouseCursor,
- required void onPressed()?,
- EdgeInsetsGeometry? padding,
- JsonWidgetData? selectedIcon,
- Color? splashColor,
- double? splashRadius,
- ButtonStyle? style,
- String? tooltip,
- 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,
);