ArrayCache<T> constructor

ArrayCache<T>({
  1. required int width,
  2. required int height,
  3. required T initialValue,
  4. CacheCoordinatePlane coordinatePlane = CacheCoordinatePlane.normal,
})

Implementation

ArrayCache(
    {required this.width,
    required this.height,
    required T initialValue,
    this.coordinatePlane = CacheCoordinatePlane.normal})
    : _storage = List.filled(width * height, initialValue);