generateScreenViewWithApiQuery method
Future<void>
generateScreenViewWithApiQuery(
- ScreenViewApiQuery screenViewApiQuery, {
- required void onSuccess(),
- required void onError(
- SyneriseError error
Implementation
Future<void> generateScreenViewWithApiQuery(ScreenViewApiQuery screenViewApiQuery,
{required void Function(ScreenView) onSuccess,
required void Function(SyneriseError error) onError}) async {
SyneriseResult<ScreenView> result =
await _methods.generateScreenViewWithApiQuery(screenViewApiQuery);
result.onSuccess((result) {
onSuccess(result);
}).onError((error) {
onError(error);
});
}