DurationExtension extension
This file is a part of media_kit (https://github.com/media-kit/media-kit).
Copyright © 2021 & onwards, Hitesh Kumar Saini saini123hitesh@gmail.com. All rights reserved. Use of this source code is governed by MIT license that can be found in the LICENSE file. Extension methods for Duration.
- on
Methods
-
clamp(
Duration min, Duration max) → Duration -
Available on Duration, provided by the DurationExtension extension
Returns clamp of Duration betweenmin
andmax
. -
label(
{Duration? reference}) → String -
Available on Duration, provided by the DurationExtension extension
Returns a String representation of Duration.