Figure class
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- label ↔ String?
-
Label names the metric, e.g. "MRR" or "Runway".
getter/setter pair
- period ↔ String?
-
Period is the window the figure covers, e.g. "2026-07" or "all-time".
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ String?
-
Value is the figure already formatted through books' own money formatter, so a consumer never re-derives it.
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) → Figure? -
Returns a new Figure instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< Figure> -
mapFromJson(
dynamic json) → Map< String, Figure> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< Figure> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.