SeniorMenuItemList class

Inheritance

Constructors

SeniorMenuItemList({Key? key, Widget? leading, required String title, VoidCallback? onTap, String? subtitle, bool enabled = true, double leftPadding = 0, double rightPadding = 0, SeniorMenuListItemStyle? style, int titleMaxLines = 1})
Creates a menu list item according to SDS.
const

Properties

enabled bool
Defines whether the menu item will be enabled.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading Widget?
A widget presented before the item content.
final
leftPadding double
The value for a padding to the left of the menu item.
final
onTap VoidCallback?
Function performed when the menu item is tapped.
final
rightPadding double
The value for a padding to the right of the menu item.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style SeniorMenuListItemStyle?
The component's style definitions. Allows you to configure: SeniorMenuListItemStyle.iconColor the color of the item's icon. SeniorMenuListItemStyle.disabledPushIconColor the color of the item's action icon. SeniorMenuListItemStyle.pushIconColor the color of the item's action icon when disabled. SeniorMenuListItemStyle.subtitleColor the item's subtitle color. SeniorMenuListItemStyle.titleColor the color of the item's title.
final
subtitle String?
The subtitle of the menu item.
final
title String
The title of the menu item.
final
titleMaxLines int
Defines the maximum lines for the menu item title.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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