FloaticaMenuItem class
A model class representing a single item in the FloatyMenu grid.
Each menu item displays an icon inside a rounded container with an optional title below it.
Constructors
- FloaticaMenuItem({required Widget icon, required String title, required VoidCallback onTap, Color? backgroundColor, TextStyle? titleStyle, EdgeInsets? iconPadding})
-
Creates a FloaticaMenuItem.
const
Properties
- backgroundColor → Color?
-
The background color of the icon container.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Widget
-
The widget displayed inside the menu item's container.
final
- iconPadding → EdgeInsets?
-
Padding around the icon inside its container.
final
- onTap → VoidCallback
-
The callback invoked when this menu item is tapped.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
The label displayed below the icon container.
final
- titleStyle → TextStyle?
-
Custom text style for the title label.
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