Segment class Null safety

Single segment in segment display such as SevenSegmentDisplay.

Constructors

Segment({required Path path, bool isEnabled = false})
Creates single display segment
Segment.colon(SegmentStyle style, Size segmentSize, double padding)
Creates segment for colon (:).
Segment.decimalPoint(SegmentStyle style, Size segmentSize, double padding)
Creates segment for decimal point (.).
Segment.fourteenA(SegmentStyle style, Size segmentSize, double padding)
Creates top segment in 14-segment display
Segment.fourteenB(SegmentStyle style, Size segmentSize, double padding)
Creates top right vertical segment in 14-segment display
Segment.fourteenC(SegmentStyle style, Size segmentSize, double padding)
Creates bottom right vertical segment in 14-segment display
Segment.fourteenD(SegmentStyle style, Size segmentSize, double padding)
Creates bottom segment in 14-segment display
Segment.fourteenE(SegmentStyle style, Size segmentSize, double padding)
Creates bottom left vertical segment in 14-segment display
Segment.fourteenF(SegmentStyle style, Size segmentSize, double padding)
Creates top left vertical segment in 14-segment display
Segment.fourteenG1(SegmentStyle style, Size segmentSize, double padding)
Creates middle left segment in 14-segment display
Segment.fourteenG2(SegmentStyle style, Size segmentSize, double padding)
Creates middle right segment in 14-segment display
Segment.fourteenH(SegmentStyle style, Size segmentSize, double padding)
Creates top left diagonal segment in 14-segment display
Segment.fourteenI(SegmentStyle style, Size segmentSize, double padding)
Creates top center vertical segment in 14-segment display
Segment.fourteenJ(SegmentStyle style, Size segmentSize, double padding)
Creates top right diagonal segment in 14-segment display
Segment.fourteenK(SegmentStyle style, Size segmentSize, double padding)
Creates bottom left diagonal segment in 14-segment display
Segment.fourteenL(SegmentStyle style, Size segmentSize, double padding)
Creates bottom center vertical segment in 14-segment display
Segment.fourteenM(SegmentStyle style, Size segmentSize, double padding)
Creates bottom right diagonal segment in 14-segment display
Segment.sevenA(SegmentStyle style, Size segmentSize, double padding)
Creates top segment in 7-segment display
Segment.sevenB(SegmentStyle style, Size segmentSize, double padding)
Creates top right segment in 7-segment display
Segment.sevenC(SegmentStyle style, Size segmentSize, double padding)
Creates bottom right segment in 7-segment display
Segment.sevenD(SegmentStyle style, Size segmentSize, double padding)
Creates bottom segment in 7-segment display
Segment.sevenE(SegmentStyle style, Size segmentSize, double padding)
Creates bottom left segment in 7-segment display
Segment.sevenF(SegmentStyle style, Size segmentSize, double padding)
Creates top left segment in 7-segment display
Segment.sevenG(SegmentStyle style, Size segmentSize, double padding)
Creates middle segment in 7-segment display
Segment.sixteenA1(SegmentStyle style, Size segmentSize, double padding)
Creates top left horizontal segment in 16-segment display
Segment.sixteenA2(SegmentStyle style, Size segmentSize, double padding)
Creates top right horizontal segment in 16-segment display
Segment.sixteenB(SegmentStyle style, Size segmentSize, double padding)
Creates top right vertical segment in 16-segment display
Segment.sixteenC(SegmentStyle style, Size segmentSize, double padding)
Creates bottom right vertical segment in 16-segment display
Segment.sixteenD1(SegmentStyle style, Size segmentSize, double padding)
Creates bottom right horizontal segment in 16-segment display
Segment.sixteenD2(SegmentStyle style, Size segmentSize, double padding)
Creates bottom left horizontal segment in 16-segment display
Segment.sixteenE(SegmentStyle style, Size segmentSize, double padding)
Creates bottom left vertical segment in 16-segment display
Segment.sixteenF(SegmentStyle style, Size segmentSize, double padding)
Creates top left vertical segment in 16-segment display
Segment.sixteenG1(SegmentStyle style, Size segmentSize, double padding)
Creates middle left segment in 16-segment display
Segment.sixteenG2(SegmentStyle style, Size segmentSize, double padding)
Creates middle right segment in 16-segment display
Segment.sixteenH(SegmentStyle style, Size segmentSize, double padding)
Creates top left diagonal segment in 16-segment display
Segment.sixteenI(SegmentStyle style, Size segmentSize, double padding)
Creates top center vertical segment in 16-segment display
Segment.sixteenJ(SegmentStyle style, Size segmentSize, double padding)
Creates top right diagonal segment in 16-segment display
Segment.sixteenK(SegmentStyle style, Size segmentSize, double padding)
Creates bottom left diagonal segment in 16-segment display
Segment.sixteenL(SegmentStyle style, Size segmentSize, double padding)
Creates bottom center vertical segment in 16-segment display
Segment.sixteenM(SegmentStyle style, Size segmentSize, double padding)
Creates bottom right diagonal segment in 16-segment display

Properties

hashCode int
The hash code for this object.
read-onlyinherited
isEnabled bool
State of segment - on or off
read / write
path Path
Describes shape of segment (how to draw segment on canvas)
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

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

Operators

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