DrawerItem class

Drawer item data

Constructors

DrawerItem({required String label, String? subtitle, IconData? icon, Widget? trailing, VoidCallback? onTap, bool selected = false, bool enabled = true, bool closeOnTap = true, bool isDivider = false})
const
DrawerItem.divider()
Create a divider item
const

Properties

closeOnTap bool
final
enabled bool
final
hashCode int
The hash code for this object.
no setterinherited
icon IconData?
final
isDivider bool
final
label String
final
onTap VoidCallback?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected bool
final
subtitle String?
final
trailing Widget?
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