StandardDurationField constructor

const StandardDurationField({
  1. Key? key,
  2. String inputFormat = 'HH:MM',
  3. dynamic onChanged(
    1. Duration value
    )?,
  4. Duration? initialValue,
  5. String? initialStringValue,
  6. dynamic onStringChanged(
    1. String value
    )?,
  7. FormFieldValidator<String>? validator,
  8. dynamic onEditingComplete()?,
  9. dynamic onFocusLost()?,
  10. bool enabled = true,
  11. bool autofocus = false,
  12. String? labelText,
  13. GestureTapCallback? onTap,
  14. Iterable<String>? autofillHints,
  15. InputDecoration? decoration,
  16. TextStyle? style,
})

Implementation

const StandardDurationField({
  super.key,
  this.inputFormat = 'HH:MM',
  this.onChanged,
  this.initialValue,
  this.initialStringValue,
  this.onStringChanged,
  this.validator,
  this.onEditingComplete,
  this.onFocusLost,
  this.enabled = true,
  this.autofocus = false,
  this.labelText,
  this.onTap,
  this.autofillHints,
  this.decoration,
  this.style,
}) : assert(((initialValue != null &&
              initialStringValue == null &&
              onChanged != null &&
              onStringChanged == null) ||
          (initialValue == null &&
              initialStringValue != null &&
              onChanged == null &&
              onStringChanged != null)));