FormCast.datetime constructor
FormCast.datetime({
- TextStyle? style,
- VoidCallback? onTap,
- FocusNode? focusNode,
- bool autofocus = false,
- bool? enableFeedback,
- EdgeInsetsGeometry? padding,
- bool hideDefaultSuffixIcon = false,
- DateTime? initialPickerDateTime,
- CupertinoDatePickerOptions? cupertinoDatePickerOptions,
- MaterialDatePickerOptions? materialDatePickerOptions,
- MaterialTimePickerOptions? materialTimePickerOptions,
- InputDecoration? decoration,
- DateFormat? dateFormat,
- DateTime? firstDate,
- DateTime? lastDate,
- DateTimeFieldPickerMode mode = DateTimeFieldPickerMode.dateAndTime,
- DateTimeFieldPickerPlatform pickerPlatform = DateTimeFieldPickerPlatform.adaptive,
Cast to datetime
Implementation
FormCast.datetime({
TextStyle? style,
VoidCallback? onTap,
FocusNode? focusNode,
bool autofocus = false,
bool? enableFeedback,
EdgeInsetsGeometry? padding,
bool hideDefaultSuffixIcon = false,
DateTime? initialPickerDateTime,
CupertinoDatePickerOptions? cupertinoDatePickerOptions,
MaterialDatePickerOptions? materialDatePickerOptions,
MaterialTimePickerOptions? materialTimePickerOptions,
InputDecoration? decoration,
DateFormat? dateFormat,
DateTime? firstDate,
DateTime? lastDate,
DateTimeFieldPickerMode mode = DateTimeFieldPickerMode.dateAndTime,
DateTimeFieldPickerPlatform pickerPlatform =
DateTimeFieldPickerPlatform.adaptive,
}) {
type = "datetime";
metaData = {};
metaData['style'] = style;
metaData['onTap'] = onTap;
metaData['focusNode'] = focusNode;
metaData['autofocus'] = autofocus;
metaData['enableFeedback'] = enableFeedback;
metaData['padding'] = padding;
metaData['hideDefaultSuffixIcon'] = hideDefaultSuffixIcon;
metaData['initialPickerDateTime'] = initialPickerDateTime;
metaData['cupertinoDatePickerOptions'] = cupertinoDatePickerOptions;
metaData['materialDatePickerOptions'] = materialDatePickerOptions;
metaData['materialTimePickerOptions'] = materialTimePickerOptions;
metaData['decoration'] = decoration;
metaData['dateFormat'] = dateFormat;
metaData['firstDate'] = firstDate;
metaData['lastDate'] = lastDate;
metaData['mode'] = mode;
metaData['pickerPlatform'] = pickerPlatform;
}