saveUint8List method
Method for storing Uint8List with a defined key.
Example:
// RCache.credentials.saveUint8List(Uint8List(10), key: RCacheKey("data"));
Implementation
@override
Future<void> saveUint8List(Uint8List data, {required RCacheKey key}) async {
try {
return await methodChannel.invokeMethod(
RCacheMethod.key.save.uint8List,
rArgs(type: RCacheMethod.key.credentials, key: key, value: data),
);
} on PlatformException catch (e) {
return Future.error(e);
}
}