zoom method

  1. @override
double zoom(
  1. double scale
)
override

Inverse of scale(), returns the zoom level corresponding to a scale factor of scale.

Implementation

@override
double zoom(double scale) {
  return (math.log(scale) / math.ln2).toDouble();
}