FixedInterval.of constructor
FixedInterval.of(
- FixedInterval interval
Constructs a copy of interval
.
Note: The cache is not copied. Each instance of FixedInterval manages its own cache.
Implementation
factory FixedInterval.of(FixedInterval interval) {
if (interval is SingularInterval) {
return SingularInterval.of(interval);
} else if (interval is PeriodicInterval) {
return PeriodicInterval.of(interval);
} else {
return FixedInterval(
interval.start,
interval.end,
inverseCdf: interval.inverseCdf,
name: interval.name,
);
}
}