Segments class Null safety

Singleton to do the math of where to display the digit segments. These segments are based on a 72-pixel high digit whose upper-left hand corner is at 0,0. it is expected that the caller will scale and translate the Canvas accordingly.

This involves some trig. The variable names are taken from the following drawings:





A real LCD doesn't have perfectly sharp corners that meet with no gap, so we add a rounded corner:


Properties

bot Path
latefinal
commaTail Path
Add this to decimalPoint
latefinal
decimalPoint Path
latefinal
hashCode int
The hash code for this object.
read-onlyinherited
lowL Path
latefinal
lowR Path
latefinal
mid Path
latefinal
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
top Path
latefinal
upL Path
latefinal
upR Path
latefinal
width double
The width of a segment, including space on the right
latefinal

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

Static Properties

instance Segments
final

Constants

h → const double
72