TypeSpec class final

Typography (spec §5.1 Typography). Font ids are the stable strings of BundledFont.id (lib/themes/render/fonts.dart), see FontIds.

Annotations

Constructors

TypeSpec({required String displayFont, required String keyFont, int displayWeight = 400, int keyWeight = 500, int operatorWeight = 500, int widthPermille = 1000, bool tabular = true, bool slashedZero = false, bool lcd = false})
const
TypeSpec.fromJson(Object? json)
factory

Properties

displayFont → String
Display (expression/result) font id.
final
displayWeight → int
CSS-style weights (100–1000).
final
hashCode → int
The hash code for this object.
no setteroverride
keyFont → String
Key label font id.
final
keyWeight → int
final
lcd → bool
7-segment LCD display (retro).
final
operatorWeight → int
Operator / = label weight (≥ keyWeight + 200 counts as a non-colour cue).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
slashedZero → bool
Slashed zero where supported.
final
tabular → bool
Tabular figures.
final
widthPermille → int
wdth axis × 10 (1000 = 100 %), where the font supports it.
final

Methods

copyWith({String? displayFont, String? keyFont, int? displayWeight, int? keyWeight, int? operatorWeight, int? widthPermille, bool? tabular, bool? slashedZero, bool? lcd}) → TypeSpec
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override