onReceivedFromNative method
Implementation
@override
Future<void> onReceivedFromNative(MethodCall call) async {
if (call.method == CaptureConstants.onCaptured) {
_onCaptured(CaptureResult(call.arguments));
} else if (call.method == CaptureConstants.onFailed) {
_onFailed(
DigifiedError(call.arguments), call.arguments[Inbound.captureType]);
} else if (call.method == CaptureConstants.onCancelled) {
_onCancelled(call.arguments[Inbound.captureType]);
} else if (call.method == CaptureConstants.onTimeout) {
_onTimeout();
}
}