date static method

TFormField<DateTime> date(
  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. List<String? Function(DateTime?)>? rules,
  9. DateTime? firstDate,
  10. DateTime? lastDate,
  11. DateFormat? format,
})

Implementation

static TFormField<DateTime> date(
  TFieldProp<DateTime> prop,
  String? label, {
  String? tag,
  String? placeholder,
  String? helperText,
  bool isRequired = false,
  bool disabled = false,
  List<String? Function(DateTime?)>? rules,
  DateTime? firstDate,
  DateTime? lastDate,
  DateFormat? format,
}) {
  return TFormField<DateTime>(
    prop: prop,
    builder: (onValueChanged) => TDatePicker(
      label: label,
      tag: tag,
      placeholder: placeholder,
      helperText: helperText,
      isRequired: isRequired,
      disabled: disabled,
      rules: rules,
      value: prop.value,
      valueNotifier: prop.valueNotifier,
      onValueChanged: onValueChanged,
      firstDate: firstDate,
      lastDate: lastDate,
      format: format,
    ),
  );
}