FieldHint constructor

const FieldHint(
  1. String key,
  2. FieldKind kind, {
  3. String? label,
  4. String? help,
  5. double? min,
  6. double? max,
  7. double? step,
  8. Unit? unit,
  9. List<String> choices = const <String>[],
  10. List<String> suffixes = const <String>[],
  11. Object? defaultValue,
  12. bool readOnly = false,
})

A field of any kind; the named constructors below say the same with only the members their kind reads.

Implementation

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