clampDateRange

fun clampDateRange(min: Date, max: Date)

Restricts the animation to a specific date range relative to the overall start and end date. This is useful if you want to limit the animation to a subset of the overall time range without changing the overall start and end date values.

Parameters

min

: The minimum date for the range, which must be between the start and end date.

max

: The maximum date for the range, which must be between the start and end date.