MainMenuFloatingActionButton constructor

MainMenuFloatingActionButton({
  1. required Widget child,
  2. required Widget closeMenuChild,
  3. String? tooltip,
  4. Color? closeMenuForegroundColor,
  5. Color? foregroundColor,
  6. Color? closeMenuBackgroundColor,
  7. Color? backgroundColor,
  8. Color? focusColor,
  9. Color? hoverColor,
  10. Color? splashColor,
  11. Object? heroTag,
  12. double? elevation,
  13. double? focusElevation,
  14. double? hoverElevation,
  15. double? highlightElevation,
  16. double? disabledElevation,
  17. required dynamic onPressed(),
  18. bool mini = false,
  19. ShapeBorder? shape,
  20. Clip clipBehavior = Clip.none,
  21. FocusNode? focusNode,
  22. bool autofocus = false,
  23. MaterialTapTargetSize? materialTapTargetSize,
  24. bool isExtended = false,
})

Implementation

MainMenuFloatingActionButton({
  required this.child,
  required this.closeMenuChild,
  this.tooltip,
  this.closeMenuForegroundColor,
  this.foregroundColor,
  this.closeMenuBackgroundColor,
  this.backgroundColor,
  this.focusColor,
  this.hoverColor,
  this.splashColor,
  this.heroTag, // if null use fab default
  this.elevation,
  this.focusElevation,
  this.hoverElevation,
  this.highlightElevation,
  this.disabledElevation,
  required this.onPressed,
  this.mini = false,
  this.shape,
  this.clipBehavior = Clip.none,
  this.focusNode,
  this.autofocus = false,
  this.materialTapTargetSize,
  this.isExtended = false,
})  : assert(elevation == null || elevation >= 0.0),
      assert(focusElevation == null || focusElevation >= 0.0),
      assert(hoverElevation == null || hoverElevation >= 0.0),
      assert(highlightElevation == null || highlightElevation >= 0.0),
      assert(disabledElevation == null || disabledElevation >= 0.0);