Segments class Null safety

Singleton to do the math of where tho 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 client 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
final, read / write, late
commaTail Path
Add this to decimalPoint
final, read / write, late
decimalPoint Path
final, read / write, late
hashCode int
The hash code for this object. [...]
read-only, inherited
lowL Path
final, read / write, late
lowR Path
final, read / write, late
mid Path
final, read / write, late
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
top Path
final, read / write, late
upL Path
final, read / write, late
upR Path
final, read / write, late
width double
The width of a segment, including space on the right
final, read / write, late

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