onReceivedFromNative method

  1. @override
Future<void> onReceivedFromNative(
  1. MethodCall call
)
override

Implementation

@override
Future<void> onReceivedFromNative(MethodCall call) async {
  if (call.method == InitializeConstants.onSuccess) {
    _onSuccess(InitializationResult(call.arguments));
  } else if (call.method == InitializeConstants.onFailed) {
    _onFailed(DigifiedError(call.arguments));
  }
}