getData method
Retrieves data from the database using the specified SQL query.
Implementation
@override
Future<String> getData(String query) async {
try {
final result =
await methodChannel.invokeMethod<List>('getData', {'query': query});
return result == null ? "" : "[${result.join(",")}]";
} catch (e) {
rethrow;
}
}