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