JsonFloatingActionButton constructor

JsonFloatingActionButton({
  1. Map<String, dynamic> args = const {},
  2. JsonWidgetRegistry? registry,
  3. bool autofocus = false,
  4. Color? backgroundColor,
  5. Clip clipBehavior = Clip.none,
  6. double? disabledElevation,
  7. double? elevation,
  8. bool? enableFeedback,
  9. Color? focusColor,
  10. double? focusElevation,
  11. FocusNode? focusNode,
  12. Color? foregroundColor,
  13. Object? heroTag = '<default JsonWidget FloatingActionButton tag>',
  14. double? highlightElevation,
  15. Color? hoverColor,
  16. double? hoverElevation,
  17. bool isExtended = false,
  18. MaterialTapTargetSize? materialTapTargetSize,
  19. bool mini = false,
  20. MouseCursor? mouseCursor,
  21. required void onPressed()?,
  22. ShapeBorder? shape,
  23. Color? splashColor,
  24. String? tooltip,
  25. 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,
     );