NmSegment<T> class

One option of a NmSegmentedControl / NmFilterChipRow / NmViewModeSwitcher.

Annotations

Constructors

NmSegment({required T value, required String label, NmIconData? icon, int? count})
Creates an NmSegment.
const

Properties

count → int?
Optional count shown after the label.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → NmIconData?
Glyph before the label.
final
label → String
Visible label.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → T
Value the segment stands for.
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