dateTime static method

TFormField<DateTime> dateTime(
  1. TFieldProp<DateTime> prop,
  2. String? label, {
  3. String? tag,
  4. String? placeholder,
  5. String? helperText,
  6. bool isRequired = false,
  7. bool disabled = false,
  8. bool autoFocus = false,
  9. bool readOnly = false,
  10. TTextFieldTheme? theme,
  11. FocusNode? focusNode,
  12. VoidCallback? onTap,
  13. TextEditingController? textController,
  14. List<String? Function(DateTime?)>? rules,
  15. VoidCallback? onShow,
  16. VoidCallback? onHide,
  17. DateFormat? format,
  18. DateTime? firstDate,
  19. DateTime? lastDate,
})

Implementation

static TFormField<DateTime> dateTime(
  TFieldProp<DateTime> prop,
  String? label, {
  String? tag,
  String? placeholder,
  String? helperText,
  bool isRequired = false,
  bool disabled = false,
  bool autoFocus = false,
  bool readOnly = false,
  TTextFieldTheme? theme,
  FocusNode? focusNode,
  VoidCallback? onTap,
  TextEditingController? textController,
  List<String? Function(DateTime?)>? rules,
  VoidCallback? onShow,
  VoidCallback? onHide,
  DateFormat? format,
  DateTime? firstDate,
  DateTime? lastDate,
}) {
  return TFormField<DateTime>(
    prop: prop,
    builder: (onValueChanged) => TDateTimePicker(
      label: label,
      tag: tag,
      placeholder: placeholder,
      helperText: helperText,
      isRequired: isRequired,
      disabled: disabled,
      autoFocus: autoFocus,
      readOnly: readOnly,
      theme: theme,
      focusNode: focusNode,
      onTap: onTap,
      textController: textController,
      rules: rules,
      onShow: onShow,
      onHide: onHide,
      format: format,
      firstDate: firstDate,
      lastDate: lastDate,
      value: prop.value,
      valueNotifier: prop.valueNotifier,
      onValueChanged: onValueChanged,
    ),
  );
}