MenuItem<T> class

Constructors

Properties

data → dynamic
append data with MenuItem, then can be use on itemBuilder
final
hashCode int
The hash code for this object.
no setterinherited
icon IconData?
set icon from MenuItem, if the icon is not null, the prefix must be null
final
id → T?
final
prefix Widget?
set prefix widget from MenuItem, if the prefix is not null, the icon must be null
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suffix Widget?
set prefix widget from MenuItem
final
textStyle TextStyle?
set independent text style for title
final
title String
final

Methods

copyWith({T? id, String? title, IconData? icon, Widget? prefix, Widget? suffix, TextStyle? textStyle, dynamic data}) MenuItem<T>
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