JsonFloatingActionButton constructor
JsonFloatingActionButton({
- Map<
String, dynamic> args = const {}, - JsonWidgetRegistry? registry,
- bool autofocus = false,
- Color? backgroundColor,
- Clip clipBehavior = Clip.none,
- double? disabledElevation,
- double? elevation,
- bool? enableFeedback,
- Color? focusColor,
- double? focusElevation,
- FocusNode? focusNode,
- Color? foregroundColor,
- Object? heroTag = '<default JsonWidget FloatingActionButton tag>',
- double? highlightElevation,
- Color? hoverColor,
- double? hoverElevation,
- bool isExtended = false,
- MaterialTapTargetSize? materialTapTargetSize,
- bool mini = false,
- MouseCursor? mouseCursor,
- required void onPressed()?,
- ShapeBorder? shape,
- Color? splashColor,
- String? tooltip,
- JsonWidgetData? child,
Implementation
JsonFloatingActionButton({
Map<String, dynamic> args = const {},
JsonWidgetRegistry? registry,
this.autofocus = false,
this.backgroundColor,
this.clipBehavior = Clip.none,
this.disabledElevation,
this.elevation,
this.enableFeedback,
this.focusColor,
this.focusElevation,
this.focusNode,
this.foregroundColor,
this.heroTag = '<default JsonWidget FloatingActionButton tag>',
this.highlightElevation,
this.hoverColor,
this.hoverElevation,
this.isExtended = false,
this.materialTapTargetSize,
this.mini = false,
this.mouseCursor,
required this.onPressed,
this.shape,
this.splashColor,
this.tooltip,
this.child,
}) : super(
jsonWidgetArgs: JsonFloatingActionButtonBuilderModel.fromDynamic(
{
'autofocus': autofocus,
'backgroundColor': backgroundColor,
'clipBehavior': clipBehavior,
'disabledElevation': disabledElevation,
'elevation': elevation,
'enableFeedback': enableFeedback,
'focusColor': focusColor,
'focusElevation': focusElevation,
'focusNode': focusNode,
'foregroundColor': foregroundColor,
'heroTag': heroTag,
'highlightElevation': highlightElevation,
'hoverColor': hoverColor,
'hoverElevation': hoverElevation,
'isExtended': isExtended,
'materialTapTargetSize': materialTapTargetSize,
'mini': mini,
'mouseCursor': mouseCursor,
'onPressed': onPressed,
'shape': shape,
'splashColor': splashColor,
'tooltip': tooltip,
'child': child,
...args,
},
args: args,
registry: registry,
),
jsonWidgetBuilder: () => JsonFloatingActionButtonBuilder(
args: JsonFloatingActionButtonBuilderModel.fromDynamic(
{
'autofocus': autofocus,
'backgroundColor': backgroundColor,
'clipBehavior': clipBehavior,
'disabledElevation': disabledElevation,
'elevation': elevation,
'enableFeedback': enableFeedback,
'focusColor': focusColor,
'focusElevation': focusElevation,
'focusNode': focusNode,
'foregroundColor': foregroundColor,
'heroTag': heroTag,
'highlightElevation': highlightElevation,
'hoverColor': hoverColor,
'hoverElevation': hoverElevation,
'isExtended': isExtended,
'materialTapTargetSize': materialTapTargetSize,
'mini': mini,
'mouseCursor': mouseCursor,
'onPressed': onPressed,
'shape': shape,
'splashColor': splashColor,
'tooltip': tooltip,
'child': child,
...args,
},
args: args,
registry: registry,
),
),
jsonWidgetType: JsonFloatingActionButtonBuilder.kType,
);