editRecord method
Implementation
Future<dynamic> editRecord({
required String id,
required dynamic data,
}) async {
try {
final editedData = await _methodChannel.invokeMethod(
'editRecord',
{
'id': id,
'data': jsonEncode(data),
},
);
return jsonDecode(editedData);
} catch (err) {
throw _mapException(err as PlatformException);
}
}