InjectedError class
Um erro sorteado (ou pedido, nos testes de tipo). noteId é a nota certa a
que ele se refere; pitch é a altura dela; played é a altura que o aluno
tocou, ou null quando ele não tocou (omissão, acorde incompleto, tropeço).
measure é o compasso da nota (a ocorrência, como MeasureSpanMs).
Constructors
- InjectedError({required HumanErrorKind kind, required String noteId, required int pitch, required int? played, required int? measure, required String detail})
-
const
Properties
- detail → String
-
Um detalhe curto para o diário: "cedo", "dedo errado", "rajada de 3"...
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- kind → HumanErrorKind
-
final
- measure → int?
-
final
- noteId → String
-
final
- pitch → int
-
final
- played → int?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited