invoke method
Future<bool>
invoke({})
Implementation
Future<bool> invoke(
{required int captureType,
int? desiredWidth,
int? desiredHeight,
required Function(CaptureResult) onCaptured,
required Function(DigifiedError, int) onFailed,
required Function(int) onCancelled,
required Function() onTimeout}) async {
_onCaptured = onCaptured;
_onFailed = onFailed;
_onCancelled = onCancelled;
_onTimeout = onTimeout;
return sendToNative({
CaptureConstants.captureType: captureType,
CaptureConstants.desiredWidth: desiredWidth,
CaptureConstants.desiredHeight: desiredHeight
});
}