MenuItem class

Represents a menu item for a list of items.

Constructors

Creates a new MenuItem for _menu and assigns an _action URL.

Properties

action GeigerUrl
Returns the action URL.
no setter
enabled bool
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
Returns the menu node.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clone() Future<MenuItem>
creates a clone of the MenuItem.
equals(Object? o) bool
name({String? languageRange}) Future<String>
Fetches the name entry of the menu in the specified language
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toByteArray() Future<List<int>>
Wrapper function to simplify serialization. @return the serializer object as byte array
toByteArrayStream(ByteSink out) → void
Writes the current object to the output stream.
tooltip({String? languageRange}) Future<String?>
Fetches the tooltip entry of the menu in the specified language
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromByteArray(List<int> buf) Future<MenuItem>
Wrapper function to simplify deserialization. @param buf the buffer to be read @return the deserialized object
fromByteArrayStream(ByteStream in_) Future<MenuItem>
Reads objects from ByteArrayInputStream and stores them in map. @param in ByteArrayInputStream to be used @return the deserialized Storable String @throws IOException if value cannot be read

Constants

serialVersionUID → const int