fab method

FloatingActionButton fab({
  1. Key? key,
  2. String? tooltip,
  3. Color? foregroundColor,
  4. Color? backgroundColor,
  5. Color? focusColor,
  6. Color? hoverColor,
  7. Color? splashColor,
  8. Object? heroTag,
  9. double? elevation,
  10. double? focusElevation,
  11. double? hoverElevation,
  12. double? highlightElevation,
  13. double? disabledElevation,
  14. VoidCallback? onPressed,
  15. MouseCursor? mouseCursor,
  16. ShapeBorder? shape,
  17. bool isExtended = false,
  18. MaterialTapTargetSize? materialTapTargetSize,
  19. Clip clip = Clip.none,
  20. FocusNode? focusNode,
  21. bool autofocus = false,
  22. bool? enableFeedback,
})

Implementation

FloatingActionButton fab({
  Key? key,
  String? tooltip,
  Color? foregroundColor,
  Color? backgroundColor,
  Color? focusColor,
  Color? hoverColor,
  Color? splashColor,
  Object? heroTag,
  double? elevation,
  double? focusElevation,
  double? hoverElevation,
  double? highlightElevation,
  double? disabledElevation,
  VoidCallback? onPressed,
  MouseCursor? mouseCursor,
  ShapeBorder? shape,
  bool isExtended = false,
  MaterialTapTargetSize? materialTapTargetSize,
  Clip clip = Clip.none,
  FocusNode? focusNode,
  bool autofocus = false,
  bool? enableFeedback,
}) =>
    FloatingActionButton(
      key: key,
      tooltip: tooltip,
      foregroundColor: foregroundColor,
      backgroundColor: backgroundColor,
      onPressed: onPressed,
      focusColor: focusColor,
      hoverColor: hoverColor,
      heroTag: heroTag,
      elevation: elevation,
      focusElevation: focusElevation,
      hoverElevation: hoverElevation,
      splashColor: splashColor,
      highlightElevation: highlightElevation,
      disabledElevation: disabledElevation,
      mouseCursor: mouseCursor,
      shape: shape,
      isExtended: isExtended,
      materialTapTargetSize: materialTapTargetSize,
      clipBehavior: clip,
      focusNode: focusNode,
      autofocus: autofocus,
      enableFeedback: enableFeedback,
      child: this,
    );