Appearance class

Constructors

Appearance({String? accent, String? density, num? type})
Returns a new Appearance instance.

Properties

accent ↔ String?
Accent is the one hue — a CSS colour token (a hex, or a bounded functional colour like rgb()/oklch()). Anything else is dropped rather than stored.
getter/setter pair
density ↔ String?
Density is the spacing step: "compact", "default" or "comfortable".
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type ↔ num?
Type is the text-size multiplier, clamped to the ramp window 0.85, 1.4. Absent (0) leaves the published default.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(dynamic value) → Appearance?
Returns a new Appearance instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Appearance>
mapFromJson(dynamic json) → Map<String, Appearance>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Appearance>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.