ArrayCache<T> constructor
ArrayCache<T> ({
- required int width,
- required int height,
- required T initialValue,
- 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);