FieldHint.choice constructor

const FieldHint.choice(
  1. String key,
  2. List<String> choices, {
  3. String? label,
  4. String? help,
  5. Object? defaultValue,
  6. bool readOnly = false,
})

One of choices.

Implementation

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