normalize method

  1. @override
double normalize(
  1. num value
)
override

Normalizes a value to range 0..1.

Implementation

@override
double normalize(num value) {
  var n = (value - minimum) / length;
  return n.toDouble();
}