AppPopupMenu<T> class

Abstract so to force to extend a subclass and allow for overriding fields.

Inheritance

Constructors

AppPopupMenu({Key? key, List<T>? items, List<PopupMenuItem<T>>? menuItems, PopupMenuItemBuilder<T>? itemBuilder, T? initialValue, PopupMenuItemSelected<T>? onSelected, PopupMenuCanceled? onCanceled, String? tooltip, double? elevation, EdgeInsetsGeometry? padding, Widget? child, Widget? icon, Offset? offset, bool? enabled, ShapeBorder? shape, Color? color})

Properties

child Widget?
final
color Color?
final
context BuildContext?
Get State object's BuildContext
no setter
elevation double?
final
enabled bool?
final
hashCode int
The hash code for this object.
no setterinherited
icon Widget?
final
initialValue → T?
final
itemBuilder PopupMenuItemBuilder<T>?
final
items List<T>?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
final
offset Offset?
final
onCanceled PopupMenuCanceled?
final
onSelected PopupMenuItemSelected<T>?
final
padding EdgeInsetsGeometry?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape ShapeBorder?
final
state → _AppPopupMenuState<T>?
no setter
tooltip String?
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
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
dispose() → void
Call this in the State object's dispose() function, widget.dispose();
inherited
initState() → void
Calls this in the State object's initState() function.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCancellation() → void
Can override in subclass
onChild() Widget?
Can override in subclass
onColor() Color?
Can override in subclass
onElevation() double?
Can override in subclass
onEnabled() bool?
Can override in subclass
onError() → void
Can override in subclass
onIcon() Widget?
Can override in subclass
onInitialValue() → T?
Can override in subclass
onItemBuilder(BuildContext context) List<PopupMenuEntry<T>>
Can override in subclass
onItems() List<T>?
Can override in subclass
onMenuItems() List<PopupMenuItem<T>>?
Can override in subclass
onOffset() Offset?
Can override in subclass
onPadding() EdgeInsetsGeometry?
Can override in subclass
onSelection(T value) → void
Can override in subclass
onShape() ShapeBorder?
Can override in subclass
onTooltip() String?
Can override in subclass
removeState() → void
Call dispose() instead but use in extraordinary situations.
inherited
set({List<T>? items, List<PopupMenuItem<T>>? menuItems, PopupMenuItemBuilder<T>? itemBuilder, T? initialValue, PopupMenuItemSelected<T>? onSelected, PopupMenuCanceled? onCanceled, String? tooltip, double? elevation, EdgeInsetsGeometry? padding = const EdgeInsets.all(8), Widget? child, Widget? icon, Offset? offset = Offset.zero, bool? enabled = true, ShapeBorder? shape, Color? color}) AppPopupMenu<T>
stateOf<T extends State<StatefulWidget>>() → T?
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
withState(State<StatefulWidget> state) → void
Record the State object to its StatefulWidget using widget.withState(this);
inherited

Operators

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