DateTimeField.time constructor
DateTimeField.time({
- Key? key,
- required ValueChanged<
DateTime?> ? onChanged, - DateTime? value,
- InputDecoration? decoration,
- DateTime? firstDate,
- DateTime? lastDate,
- DateTime? initialPickerDateTime,
- TextStyle? style,
- CupertinoDatePickerOptions cupertinoDatePickerOptions = const CupertinoDatePickerOptions(),
- MaterialTimePickerOptions materialTimePickerOptions = const MaterialTimePickerOptions(),
- bool autofocus = false,
- DateFormat? dateFormat,
- EdgeInsetsGeometry? padding,
- VoidCallback? onTap,
- FocusNode? focusNode,
- bool hideDefaultSuffixIcon = false,
- bool? enableFeedback,
- DateTimeFieldPickerPlatform pickerPlatform = DateTimeFieldPickerPlatform.adaptive,
Implementation
factory DateTimeField.time({
Key? key,
required ValueChanged<DateTime?>? onChanged,
DateTime? value,
InputDecoration? decoration,
DateTime? firstDate,
DateTime? lastDate,
DateTime? initialPickerDateTime,
TextStyle? style,
CupertinoDatePickerOptions cupertinoDatePickerOptions =
const CupertinoDatePickerOptions(),
MaterialTimePickerOptions materialTimePickerOptions =
const MaterialTimePickerOptions(),
bool autofocus = false,
DateFormat? dateFormat,
EdgeInsetsGeometry? padding,
VoidCallback? onTap,
FocusNode? focusNode,
bool hideDefaultSuffixIcon = false,
bool? enableFeedback,
DateTimeFieldPickerPlatform pickerPlatform =
DateTimeFieldPickerPlatform.adaptive,
}) =>
DateTimeField(
key: key,
mode: DateTimeFieldPickerMode.time,
firstDate: firstDate ?? DateTime(2000),
lastDate: lastDate ?? DateTime(2001),
onChanged: onChanged,
value: value,
decoration: decoration,
initialPickerDateTime: initialPickerDateTime,
style: style,
autofocus: autofocus,
dateFormat: dateFormat,
padding: padding,
onTap: onTap,
focusNode: focusNode,
hideDefaultSuffixIcon: hideDefaultSuffixIcon,
enableFeedback: enableFeedback,
cupertinoDatePickerOptions: cupertinoDatePickerOptions,
materialTimePickerOptions: materialTimePickerOptions,
pickerPlatform: pickerPlatform,
);