MultiGridLevelRow class

A row in a MultiGridLevel.

Constructors

MultiGridLevelRow({required Message label, required int getNumberOfEntries(), required Message getEntryLabel(int index), required void onActivate(int index), List<MultiGridLevelRowAction> actions = const []})
Create an instance.
const
MultiGridLevelRow.fromDict(Message label, Map<Message, void Function(int index)> commands, {List<MultiGridLevelRowAction>? actions})
Create an instance with a dictionary of commands:
factory

Properties

actions List<MultiGridLevelRowAction>
The list of actions supported by this row.
final
getEntryLabel Message Function(int index)
A function that should return a label for the entry at the given index.
final
getNumberOfEntries int Function()
A function which should return the maximum number of entries in this row.
final
hashCode int
The hash code for this object.
no setterinherited
label Message
The label of this row.
final
onActivate → void Function(int index)
The function that will be called when the current entry is activated.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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