startAssessment method
Implementation
@override
Future<void> startAssessment({
void Function(SencyHandlerStatus)? onHandle,
}) async {
final subscription = eventChannel.receiveBroadcastStream().listen((event) {
_onEvent(event, onHandle);
});
try {
await methodChannel.invokeMethod('startAssessment');
subscription.cancel();
} on PlatformException catch (e) {
debugPrint('PlatformException: ${e.code} ${e.message}');
}
}