ButtonTool<T extends Equatable> constructor
const
ButtonTool<T extends Equatable> ({
- Key? key,
- ToolVisibility visibility = ToolVisibility.floatOnCompact,
- ValueNotifier<
T> ? toolValue, - Widget? icon(
- T? param
- IconData? iconData(
- T? param
- String? tooltip(
- T? param
- bool enabled(
- T? param
- void onPressed(
- T? param
- Size size = const Size(40, 40),
- Color? iconColor,
- Color? backgroundColor,
- Color? pressedIconColor,
- Color? pressedBackgroundColor,
- ButtonStyle? style,
- bool isPressed(
- 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,
});