duration method
Creates a duration input that can be typed in
Implementation
Duration duration({
required String label,
Duration initialValue = Duration.zero,
String? description,
}) {
return onKnobAdded(
DurationKnob(
label: label,
initialValue: initialValue,
description: description,
),
)!;
}