GestuMenuSecondaryItemWidget<G> class
Widget for a secondary menu item.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- GestuMenuSecondaryItemWidget
Constructors
-
GestuMenuSecondaryItemWidget({Key? key, required String title, required G index, bool isSelected = false, IconData? prefixIconData, IconData? suffixIconData, ValueChanged<
G> ? onTap, bool isPrimary = false, TextStyle? textStyle, Color? selectedColor, Color? selectedTextColor, BoxDecoration? decoration, num? counter}) -
Constructor for GestuMenuSecondaryItemWidget.
const
Properties
- counter → num?
-
Optional counter to display next to the item.
final
- decoration → BoxDecoration?
-
Decoration for the item's container.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → G
-
Index of the item.
final
- isPrimary → bool
-
Indicates if the item is a primary item.
final
- isSelected → bool
-
Indicates if the item is selected.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onTap
→ ValueChanged<
G> ? -
Callback that is called when the item is tapped.
final
- prefixIconData → IconData?
-
Optional icon to display before the title.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedColor → Color?
-
Color for the background of a selected item.
final
- selectedTextColor → Color?
-
Color for the text of a selected item.
final
- suffixIconData → IconData?
-
Optional icon to display after the title.
final
- textStyle → TextStyle?
-
Style for the text of the item.
final
- title → String
-
Title of the item.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
copyWith(
{TextStyle? textStyle, Color? selectedColor, Color? selectedTextColor, BoxDecoration? decoration, ValueChanged< G> ? onTap}) → GestuMenuSecondaryItemWidget<G> -
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