getDecodedBase64 static method
Implementation
static Uint8List? getDecodedBase64(String? value) {
if (value == null || value.isEmpty) {
return null;
}
final cached = _base64Cache.remove(value);
if (cached != null) {
_base64Cache[value] = cached;
return cached;
}
try {
final bytes = base64Decode(value);
_base64Cache[value] = bytes;
_trimCache(_base64Cache, _maxBase64CacheEntries);
return bytes;
} catch (_) {
return null;
}
}