ToolBarIconButton class

An icon button suitable for the toolbar.

Inheritance

Constructors

ToolBarIconButton({Key? key, required String label, required Widget icon, VoidCallback? onPressed, required bool showLabel, String? tooltipMessage})
Builds an icon button suitable for the toolbar.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
icon Widget
The widget to use as the icon.
final
key Key?
finalinherited
label String
The label that describes this button's action.
final
onPressed VoidCallback?
The callback that is called when the button is tapped or otherwise activated.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showLabel bool
Whether the tool bar icon button should show its label below the icon.
final
tooltipMessage String?
An optional message to appear in a tooltip when user hovers over the button.
final

Methods

build(BuildContext context, ToolbarItemDisplayMode displayMode) Widget
Builds the final widget for this display mode for this item. Sub-classes implement this to build the widget that is appropriate for the given display mode (in toolbar or overflowed).
override
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited