Scale<T> constructor
Scale<T> (
- T minimum,
- T maximum, [
- T? length
Implementation
Scale(this.minimum, this.maximum, [T? length]) {
try {
length ??= computeLength(maximum, minimum);
}
// ignore: empty_catches
catch (ignore) {}
if (length == null) {
throw StateError("Can't compute scale length!");
}
_length = length;
}