Segment class

Constructors

Segment({bool autoFocus = false, bool isFocusable = true, bool showFocusEffect = true, FocusNode? focusNode, SegmentStyle? segmentStyle, String? semanticLabel, ValueChanged<bool>? isSelected, Widget? leading, Widget? label, Widget? trailing})
Creates a Moon Design segment.
const

Properties

autoFocus bool
True if this widget will be selected as the initial focus when no other node in its scope is currently focused.
final
focusNode FocusNode?
An optional focus node to use as the focus node for this widget.
final
hashCode int
The hash code for this object.
no setterinherited
isFocusable bool
Whether the segment is focusable.
final
isSelected ValueChanged<bool>?
The callback that returns the current selection status of the segment as a boolean value.
final
label Widget?
The primary content of the segment widget.
final
leading Widget?
The widget to display before the label widget of the segment.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
segmentStyle SegmentStyle?
The styling options for the segment.
final
semanticLabel String?
The semantic label for the segment.
final
showFocusEffect bool
Whether to show a focus outline effect when the segment is focused.
final
trailing Widget?
The widget to display after the label widget of the segment.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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