FanMenuItem class

Constructors

FanMenuItem({required void onTap(), Widget? itemWidget, IconData? icon, String title = '', Color menuItemIconColor = Colors.pink, TextStyle titleStyle = const TextStyle(fontSize: 16, color: Colors.black), List<BoxShadow> menuItemBoxShadow = const [BoxShadow(color: Colors.grey, offset: Offset(0, 0), blurRadius: 2)], Color menuItemColor = Colors.white})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
icon IconData?
Defines an icon for an item If define the icon property then itemWidget property will not apply.
final
itemWidget Widget?
Defines a widget for the item. If define itemWidget property then other property will not apply for menu items.
final
Defines the BoxShadow list for the item.
final
Defines item background color.
final
Defines the icon color of the item.
final
onTap → void Function()
Defines a callback for when user tapps on the item.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
Defines title of the item.
final
titleStyle TextStyle
Defines TextStyle for the item.
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