checkSurveys method
Implementation
@override
Future<void> checkSurveys(
void Function(bool) onResponse,
void Function(Exception) onFailure,
) async {
try {
final bool surveysExist =
await methodChannel.invokeMethod('checkSurveys');
onResponse(surveysExist);
} on PlatformException catch (e) {
onFailure(Exception(e.message));
} catch (e) {
onFailure(Exception(e));
}
}