FieldHint.color constructor

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

A linear colour.

Implementation

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