FitMenuItem class

Item for a FitMenu.

Annotations

Constructors

FitMenuItem.new({String? id, required IconData icon, required String title, required dynamic onTap(BuildContext context, Object? item), bool show(BuildContext context, Object? item) = _accept, bool disable(BuildContext context, Object? item) = _refuse})
Creates a new FitMenuItem.
const

Properties

disable bool Function(BuildContext context, Object? item)
Execute when checking if the item should be disabled or not. Should return true if the item has to be disabled;
final
hashCode int
The hash code for this object.
no setterinherited
icon IconData
Icon data of the item.
final
id String?
Id of the item.
final
onTap → dynamic Function(BuildContext context, Object? item)
Execute when tapping on the item.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
show bool Function(BuildContext context, Object? item)
Execute when checking if the item should be displayed or not. Should return true if the item has to be shown.
final
title String
Text of the item.
final

Methods

copyWith({String? id, IconData? icon, String? title, dynamic onTap(BuildContext context, Object? item)?, bool show(BuildContext context, Object? item)?, bool disable(BuildContext context, Object? item)?}) FitMenuItem
Copies an instance and override properties.
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