ToolBuilder<T> constructor

const ToolBuilder<T>({
  1. Key? key,
  2. ToolVisibility visibility = ToolVisibility.always,
  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. bool hidden(
    1. T? param
    ) = _false,
  9. String? tooltip(
    1. T? param
    ) = _null<String>,
  10. void onPressed(
    1. T? param
    )?,
})

Implementation

const ToolBuilder({
  super.key,
  super.visibility,
  this.toolValue,
  this.icon = _null<Widget>,
  this.iconData = _null<IconData>,
  this.text = _null<String>,
  this.enabled = _true,
  this.hidden = _false,
  this.tooltip = _null<String>,
  this.onPressed,
});