static create()
Returns a new instance of `Range` with a range of the given required `min`, `max` and optional current `value`, `step`
Last updated
Was this helpful?
Returns a new instance of `Range` with a range of the given required `min`, `max` and optional current `value`, `step`
Last updated
Was this helpful?
Range.create()
The static create()
method returns a new instance of with a range of the given required , and optional current , .
Min
extends
A generic type variable constrained by the , by default of the value captured from the supplied indicates the minimum range type of a new instance.
Max
extends
A generic type variable constrained by the , by default of the value captured from the supplied indicates the maximum range type of a new instance.
Step
extends
= 1
A generic type variable constrained by the , by default of the value equal to 1
, optionally captured from the supplied indicates the range step type of a new instance.
The minimum range of generic type variable to set with a new instance.
The maximum range of generic type variable to set with a new instance.
The optional value of the type between the given and specifies the default value of a new instance.
Optional step of generic type variable to set with a new instance, by default 1
.
The return type is the object that takes generic type variable , and .
The return value is the instance with a range of the given required , and optional current , .