dateTime method

DateTime dateTime({
  1. required String label,
  2. required 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

Implementation

DateTime dateTime({
  required String label,
  required DateTime initialValue,
  String? description,
  required DateTime start,
  required DateTime end,
}) {
  return onKnobAdded(
    DateTimeKnob(
      label: label,
      initialValue: initialValue,
      description: description,
      start: start,
      end: end,
    ),
  )!;
}