CNToolbarSegment class
One segment of a CNToolbarSegmentedGroup.
- Annotations
Constructors
- CNToolbarSegment({required String label, CNSymbol? icon, IconData? customIcon, CNImageAsset? imageAsset, String? tooltip, bool enabled = true})
-
Creates a segment.
const
Properties
- customIcon → IconData?
-
An icon font glyph, rendered by Flutter.
final
- enabled → bool
-
Whether the segment can be chosen.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → CNSymbol?
-
SF Symbol of the segment. The group shows icons when every segment has
one, else titles.
final
- imageAsset → CNImageAsset?
-
An image asset or bytes.
final
- label → String
-
The segment's title, or its VoiceOver label when every segment of the
group has an icon.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tooltip → String?
-
Help text shown when the pointer rests on the segment (macOS).
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