Configurable<T> constructor

Configurable<T>({
  1. required String key,
  2. required String label,
  3. required T value,
  4. String? description,
  5. String? hint,
  6. String formatter(
    1. T value
    )?,
  7. String? validator(
    1. T value
    )?,
  8. String? icon,
})

Creates a new Configurable field.

Implementation

Configurable({
  required this.key,
  required this.label,
  required this.value,
  this.description,
  this.hint,
  this.formatter,
  this.validator,
  this.icon,
}) : defaultValue = value;