C2Choice<T> constructor

const C2Choice<T>({
  1. required T value,
  2. required String label,
  3. String? tooltip,
  4. bool disabled = false,
  5. bool hidden = false,
  6. dynamic meta,
  7. C2ChoiceStyle? style,
  8. C2ChoiceStyle? activeStyle,
  9. dynamic select(
    1. bool selected
    )?,
  10. bool selected = false,
})

Default Constructor

Implementation

const C2Choice({
  required this.value,
  required this.label,
  this.tooltip,
  this.disabled = false,
  this.hidden = false,
  this.meta,
  this.style,
  this.activeStyle,
  this.select,
  this.selected = false,
}) : assert(disabled != null),
  assert(hidden != null);