Session class
Session represents a single instance of training. It contains data on what was performed as well as notes and metadata.
- Inheritance
-
- Object
- Metadatable
- Session
Constructors
Properties
- defaultBW ↔ double
-
Useful to set as a config option in your app.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
kvps
→ Map<
String, String> -
Convenience access to kvps.
no setterinherited
- metadata ↔ Metadata
-
getter/setter pairinherited
-
movements
↔ List<
Movement> -
getter/setter pair
-
notes
→ List<
String> -
Convenience access to notes.
no setterinherited
- occurred ↔ DateTime
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tokens
↔ List<
Token> -
getter/setter pair
- unit ↔ String
-
getter/setter pairinherited
Methods
-
addKVP(
String key, String value) → void -
Adds the key value pair to the KVPs.
inherited
-
addMovement(
Movement movement) → void - Adds a Movement and ensures the units align at all levels. Care taken in case a Movement is rehomed.
-
addNote(
String note) → void -
Adds a note.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setKVP(
String key, String value) → void -
Sets the value for the given key.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited