remove method
Future<RemoveResult>
remove(
{ - required RemoveRequest request,
})
Implementation
@override
Future<RemoveResult> remove({required RemoveRequest request}) async {
try {
final Map<String, dynamic>? data =
(await _channel.invokeMapMethod<String, dynamic>(
'remove',
request.serializeAsMap(),
));
if (data == null)
throw AmplifyException(
AmplifyExceptionMessages.nullReturnedFromMethodChannel);
RemoveResult result = _formatRemoveResult(data);
return result;
} on PlatformException catch (e) {
throw _convertToStorageException(e);
}
}