TextButtonTool<T> constructor
const
TextButtonTool<T> ({
- Key? key,
- ToolVisibility visibility = ToolVisibility.showOnCompact,
- ValueNotifier<
T> ? toolValue, - Widget? icon(
- T? param
- IconData? iconData(
- T? param
- String? text(
- T? param
- bool enabled(
- T? param
- String? tooltip(
- T? param
- void onPressed(
- T? param
- List<
String> ? options(- T? param
- OnOption? onOption,
- TextStyle? textStyle,
- bool textShadow = false,
- bool insetToolContainer = true,
- double? iconSize = 24,
- Color? iconColor,
- bool animateDown = true,
- double? fontSize,
- Color? fontColor,
- Alignment alignment = Alignment.center,
- double? width,
- double? height = 32,
- VoidCallback? onInit,
- VoidCallback? onDispose,
Implementation
const TextButtonTool({
super.key,
super.visibility = ToolVisibility.showOnCompact,
super.toolValue,
super.icon,
super.iconData,
super.text,
super.enabled,
super.tooltip,
super.onPressed,
this.options = _null<List<String>>,
this.onOption,
this.textStyle,
this.textShadow = false,
this.insetToolContainer = true,
this.iconSize = 24,
this.iconColor,
this.animateDown = true,
this.fontSize,
this.fontColor,
Alignment alignment = Alignment.center,
double? width,
double? height = 32,
this.onInit,
this.onDispose,
}) : _alignment = alignment,
_width = width,
_height = height;