durationOrNull method
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,
),
);
}