updateData method
Writes data to the database using the specified SQL query.
Implementation
@override
Future<String> updateData(String query) async {
try {
final String? result = await methodChannel
.invokeMethod<String>('updateData', {'query': query});
return result ?? '';
} catch (e) {
rethrow;
}
}