ButtonTool<T extends Equatable> constructor

const ButtonTool<T extends Equatable>({
  1. Key? key,
  2. ToolVisibility visibility = ToolVisibility.floatOnCompact,
  3. ValueNotifier<T>? toolValue,
  4. Widget? icon(
    1. T? param
    ) = _null<Widget>,
  5. IconData? iconData(
    1. T? param
    ) = _null<IconData>,
  6. String? tooltip(
    1. T? param
    ) = _null<String>,
  7. bool enabled(
    1. T? param
    ) = _true,
  8. void onPressed(
    1. T? param
    )?,
  9. Size size = const Size(40, 40),
  10. Color? iconColor,
  11. Color? backgroundColor,
  12. Color? pressedIconColor,
  13. Color? pressedBackgroundColor,
  14. ButtonStyle? style,
  15. bool isPressed(
    1. T? param
    )?,
})

Implementation

const ButtonTool({
  super.key,
  super.visibility = ToolVisibility.floatOnCompact,
  super.toolValue,
  super.icon,
  super.iconData,
  super.tooltip,
  super.enabled,
  super.onPressed,
  this.size = const Size(40, 40),
  this.iconColor,
  this.backgroundColor,
  this.pressedIconColor,
  this.pressedBackgroundColor,
  this.style,
  this.isPressed,
});