choice property

  1. @override
List<S2Choice<T>>? get choice
override

return an array of the selected S2Choice

Implementation

@override
List<S2Choice<T>>? get choice {
  return _choice;
}
  1. @override
set choice (covariant List<S2Choice<T>>? choices)
covariantoverride

Override the selected choice with a new one, and validate it

Implementation

@override
set choice(List<S2Choice<T>>? choices) {
  _choice = List<S2Choice<T>>.from(choices ?? []);
  _value = [];
  validate();
}