Performance class

Performance represents a single expression of movement. It can be as little as a single or as much as needed. Each Performance must have a load otherwise it is somewhat nonsensical. Outside that, a Performance may have a count of repititions performed for the given load, a count of sets of reps, a count of failed reps, and a unit for the load.

Inheritance

Constructors

Performance({double fails = 0, double? load = -1, double sets = 1, double reps = 1, String unit = Metadata.unknownUnit})

Properties

fails double
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
kvps Map<String, String>
Convenience access to kvps.
no setterinherited
load double?
getter/setter pair
metadata Metadata
getter/setter pairinherited
notes List<String>
Convenience access to notes.
no setterinherited
reps double
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sets double
getter/setter pair
successfulReps double
no setter
unit String
getter/setter pairinherited
volume double
no setter

Methods

addKVP(String key, String value) → void
Adds the key value pair to the KVPs.
inherited
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
operator []=(String attr, double value) → void
Simple accessors that do not require Mirrors.

Static Properties

attrs List<String>
List of getters/setters on the class used for dynamic access without the use of Mirrors.
getter/setter pair