SidebarItem class
A macOS style navigation-list item intended for use in a Sidebar
See also:
- Sidebar, a side bar used alongside MacosScaffold
- SidebarItems, the widget that displays SidebarItems vertically
- Mixed-in types
Constructors
-
SidebarItem({Widget? leading, required Widget label, Color? selectedColor, Color? unselectedColor, ShapeBorder? shape, FocusNode? focusNode, String? semanticLabel, List<
SidebarItem> ? disclosureItems, bool expandDisclosureItems = false, Widget? trailing}) -
Creates a sidebar item.
const
Properties
-
disclosureItems
→ List<
SidebarItem> ? -
The disclosure items. If null, there will be no disclosure items.
final
- expandDisclosureItems → bool
-
If true, the disclosure items will be expanded otherwise collapsed.
final
- focusNode → FocusNode?
-
The focus node used by this item.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → Widget
-
Indicates what content this widget represents.
final
- leading → Widget?
-
The widget before label.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedColor → Color?
-
The color to paint this widget as when selected.
final
- semanticLabel → String?
-
The semantic label used by screen readers.
final
- shape → ShapeBorder?
-
The shape property specifies the outline (border) of the
decoration. The shape must not be null. It's used alongside
selectedColor.
final
- trailing → Widget?
-
An optional trailing widget.
final
- unselectedColor → Color?
-
The color to paint this widget as when unselected.
final
Methods
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
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
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited