decode method
Decodes a value of storage type TStore
back to type T
.
Returns null if the stored value is null or cannot be decoded.
Implementation
@override
List<Uint8List>? decode(List<String>? base64List) {
if (base64List == null) return null;
try {
final result = <Uint8List>[];
for (final base64 in base64List) {
result.add(base64Decode(base64));
}
return result;
} catch (_) {
return null; // in case of malformed base64
}
}