acquireCached method

SfSymbolTexture? acquireCached(
  1. SfSymbolConfig config
)

Takes a reference to config if it is already rendered.

Returns null if it is not, in which case use acquire. Callers that get a texture must release it.

Implementation

SfSymbolTexture? acquireCached(SfSymbolConfig config) {
  final entry = _entries[config];
  if (entry == null) return null;
  entry.refCount++;
  _unused.remove(config);
  return entry.texture;
}