handleResult method
Implementation
Future<String?> handleResult(BuildContext context, String? result) async {
/* Analytics */
_notifyAnalytics();
/* handle the result */
if (result == null || result.isEmpty) {
return Future.value(null);
}
var json = jsonDecode(result);
if (json is Map<String, dynamic>) {
var action = SDUIAction().fromJson(json);
action.pageController = pageController;
action.screen = screen;
return action
.execute(context, json)
.then((value) => handleResult(context, value));
}
return Future.value(null);
}