PieAction class
Defines an action to display on the circular buttons of the PieMenu.
Constructors
- PieAction({required String tooltip, required dynamic onSelect(), EdgeInsets padding = EdgeInsets.zero, PieButtonTheme? buttonTheme, PieButtonTheme? buttonThemeHovered, required Widget? child})
- Creates a PieAction with a child widget.
- PieAction.builder({required String tooltip, required dynamic onSelect(), EdgeInsets padding = EdgeInsets.zero, PieButtonTheme? buttonTheme, PieButtonTheme? buttonThemeHovered, required Widget builder(bool hovered)?})
- Creates a PieAction with a builder which provides whether the action is hovered or not.
Properties
- builder → (Widget Function(bool hovered)?)
-
Widget builder which provides whether the action is hovered or not.
final
-
Theme of
PieButton
.final -
Theme of
PieButton
when it is hovered.final - child → Widget?
-
Widget to display inside
PieButton
, usually an icon.final - hashCode → int
-
The hash code for this object.
no setterinherited
- onSelect → dynamic Function()
-
Function to trigger when
PieButton
is selected.final - padding → EdgeInsets
-
Padding for the child widget displayed on
PieButton
.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tooltip → String
-
PieButton
refers to the button this PieAction belongs to. Text to display on PieCanvas whenPieButton
is hovered.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited