StarMenu class

Inheritance
Available Extensions

Constructors

StarMenu({Key? key, StarMenuController? controller, StarMenuParameters params = const StarMenuParameters(), List<Widget>? items, Future<List<Widget>> lazyItems()?, void onStateChanged(MenuState state)?, void onItemTapped(int index, StarMenuController controller)?, Widget? child, BuildContext? parentContext})

Properties

child Widget?
widget that triggers the opening of the menu Only child or parentContext is allowed
final
controller StarMenuController?
controls to open/close the menu programmatically
final
hashCode int
The hash code for this object.
no setterinherited
items List<Widget>?
widget items entry list
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lazyItems → (Future<List<Widget>> Function()?)
function to build dynamically items list whenever the menu open occurs
final
onItemTapped → (void Function(int index, StarMenuController controller)?)
The callback that is called when a menu item is tapped. It gives the ID of the item and a controller to eventually close the menu
final
onStateChanged → (void Function(MenuState state)?)
return current menu state
final
params StarMenuParameters
parameters of this menu
final
parentContext BuildContext?
context of the Widget where the menu will be opened Only child or parentContext is allowed
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() StarMenuState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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