getDirtyOrNull

abstract fun getDirtyOrNull(@Px() width: Int, @Px() height: Int, config: Bitmap.Config): Bitmap?

Identical to getDirty except that null will be returned if the pool does not contain a usable bitmap.