getNextAction method
Use this method to get the next action that you should let the user perform based on the predefined sequence in the SDK. Actions can be found here DigifiedAction
onResult
(required) A callback method with the NextActionResult to be performed
Implementation
Future<bool> getNextAction({required Function(NextActionResult) onResult}) {
if (!_isInitializeCalled) {
debugPrint("Digifed: call initialize first!");
return Future.value(false);
}
return NextActionMethod().invoke(onResult: onResult);
}