initialize method

  1. @override
Future<String?> initialize({
  1. Map<String, dynamic>? config,
})
override

Implementation

@override
Future<String?> initialize({Map<String, dynamic>? config}) async {
  try {
    await _loadSdk();
  } catch (e) {
    throw PlatformException(
        code: 'SDK_LOAD_FAILED',
        message: 'Could not load the QuickCapture web SDK: $e');
  }
  return 'QuickCapture initialised successfully';
}