TextButtonTool<T> constructor

const TextButtonTool<T>({
  1. Key? key,
  2. ToolVisibility visibility = ToolVisibility.showOnCompact,
  3. ValueNotifier<T>? toolValue,
  4. Widget? icon(
    1. T? param
    ) = _null<Widget>,
  5. IconData? iconData(
    1. T? param
    ) = _null<IconData>,
  6. String? text(
    1. T? param
    ) = _null<String>,
  7. bool enabled(
    1. T? param
    ) = _true,
  8. String? tooltip(
    1. T? param
    ) = _null<String>,
  9. void onPressed(
    1. T? param
    )?,
  10. List<String>? options(
    1. T? param
    ) = _null<List<String>>,
  11. OnOption? onOption,
  12. TextStyle? textStyle,
  13. bool textShadow = false,
  14. bool insetToolContainer = true,
  15. double? iconSize = 24,
  16. Color? iconColor,
  17. bool animateDown = true,
  18. double? fontSize,
  19. Color? fontColor,
  20. Alignment alignment = Alignment.center,
  21. double? width,
  22. double? height = 32,
  23. VoidCallback? onInit,
  24. 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;