RotinaItem class final
Um item do dia: o que praticar (o alvo), até onde (a meta) e os textos do professor. O id é único dentro do dia.
Constructors
- RotinaItem({required String id, required RotinaAlvo alvo, required RotinaMeta meta, String? titulo, String? observacao})
-
const
-
RotinaItem.fromJson(Map<
String, Object?> json) -
Lê o item do JSON; lança FormatoDaRotinaException se o formato não se lê.
factory
Properties
- alvo → RotinaAlvo
-
O que o aluno pratica.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
O id estável do item no dia (o TC06 o gera; aqui é só texto).
final
- meta → RotinaMeta
-
Até onde ele tem de chegar.
final
- observacao → String?
-
Uma observação do professor, como "devagar, com a mão esquerda".
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true, the toString method will be overridden to output this instance's props.no setterinherited - titulo → String?
-
Um título que o professor põe (senão a tela usa o nome do alvo).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recebe(
{required String? treino, required String exercicio}) → bool -
Se a rodada do relatório (ou a visita) é deste item: o treino e o
exercicio(o id da fonte) são os que o alvo recebe (verRotinaAlvo.recebeRodada). -
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited