durationOrNull method

Duration? durationOrNull({
  1. required String label,
  2. Duration? initialValue,
  3. String? description,
})

Creates a duration input that can be adjusted and optionally hold a null value

Implementation

Duration? durationOrNull({
  required String label,
  Duration? initialValue,
  String? description,
}) {
  return onKnobAdded(
    DurationKnob.nullable(
      label: label,
      initialValue: initialValue,
      description: description,
    ),
  );
}