dateTimeOrNull method

DateTime? dateTimeOrNull({
  1. required String label,
  2. DateTime? initialValue,
  3. String? description,
  4. required DateTime start,
  5. required DateTime end,
})

Creates a text field that can be used to select a date and time and can be initially empty

Implementation

DateTime? dateTimeOrNull({
  required String label,
  DateTime? initialValue,
  String? description,
  required DateTime start,
  required DateTime end,
}) {
  return onKnobAdded(
    DateTimeKnob.nullable(
      label: label,
      initialValue: initialValue,
      description: description,
      start: start,
      end: end,
    ),
  );
}