isImageWithPerspectiveInCache method

bool isImageWithPerspectiveInCache(
  1. List<Point<num>>? points,
  2. double scale
)

Implementation

bool isImageWithPerspectiveInCache(List<Point<num>>? points, double scale) {
  if (scale <= 0) return false;

  var cacheKey = '$scale > $points';

  var imageWithPerspective = _perspectiveCache[cacheKey];
  return imageWithPerspective != null;
}