Principle class

Constructors

Principle({String? change, String? domain, String? hexagram, int? n, String? name, String? principle, String? slug, String? sunTzu})
Returns a new Principle instance.

Properties

change ↔ String?
the Book of Changes reading
getter/setter pair
domain ↔ String?
the growth / go-to-market domain it governs
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
hexagram ↔ String?
the I-Ching hexagram (pinyin + gloss)
getter/setter pair
n ↔ int?
1..64, the hexagram number + canonical order
getter/setter pair
name ↔ String?
the principle's short name
getter/setter pair
principle ↔ String?
the actionable growth law
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
slug ↔ String?
stable identifier a tactic files under
getter/setter pair
sunTzu ↔ String?
the Art of War teaching
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) → Principle?
Returns a new Principle instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Principle>
mapFromJson(dynamic json) → Map<String, Principle>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Principle>>

Constants

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