imageKey property

String get imageKey

When the _imageKey isn't specified imageKey will return either the key for the atlas stored in imageCache or a key generated from the identityHashCode.

Implementation

String get imageKey =>
    _imageKey ??
    imageCache.findKeyForImage(atlas) ??
    'image[${identityHashCode(atlas)}]';