SightDirection constructor
Implementation
const SightDirection(
this.kind, {
required this.measure,
required this.tick,
required this.staff,
this.level,
this.text,
}) : assert(
(kind == SightDirectionKind.dynamics) == (level != null),
'só a dinâmica tem nível',
),
assert(
(kind == SightDirectionKind.words) == (text != null),
'só o texto tem texto',
);