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