FieldHint.toggle constructor

const FieldHint.toggle(
  1. String key, {
  2. String? label,
  3. String? help,
  4. Object? defaultValue,
  5. bool readOnly = false,
})

Yes or no.

Implementation

const FieldHint.toggle(
  this.key, {
  this.label,
  this.help,
  this.defaultValue,
  this.readOnly = false,
}) : kind = FieldKind.toggle,
     min = null,
     max = null,
     step = null,
     unit = null,
     choices = const <String>[],
     suffixes = const <String>[];