aspectKey static method

int aspectKey(
  1. double aspect
)

aspect quantised to 1/100 (the cache key).

Implementation

static int aspectKey(double aspect) =>
    (aspect.isFinite && aspect > 0 ? aspect * 100 : 100).round().clamp(
      10,
      1000,
    );