drawerOptions property

Map<List, dynamic Function()> drawerOptions
final

Map of navigation options and their callbacks.

The key is a list where:

  • First element is the option text (String)
  • Second element (optional) is the icon widget

The value is the callback function executed when the option is tapped. The drawer automatically closes before executing the callback.

Implementation

final Map<List<dynamic>, Function()> drawerOptions;