StandardDurationField constructor
const
StandardDurationField({
- Key? key,
- String inputFormat = 'HH:MM',
- dynamic onChanged(
- Duration value
- Duration? initialValue,
- String? initialStringValue,
- dynamic onStringChanged(
- String value
- FormFieldValidator<
String> ? validator, - dynamic onEditingComplete()?,
- dynamic onFocusLost()?,
- bool enabled = true,
- bool autofocus = false,
- String? labelText,
- GestureTapCallback? onTap,
- Iterable<
String> ? autofillHints, - InputDecoration? decoration,
- 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)));