FieldHint.number constructor

const FieldHint.number(
  1. String key, {
  2. String? label,
  3. String? help,
  4. double? min,
  5. double? max,
  6. double? step,
  7. Unit? unit,
  8. Object? defaultValue,
  9. bool readOnly = false,
})

A decimal number.

Implementation

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