startOnboarding method

  1. @override
Future<void> startOnboarding(
  1. String folderUid,
  2. IDCheckTheme? theme
)
override

Implementation

@override
Future<void> startOnboarding(String folderUid, IDCheckTheme? theme) async {
  try {
    await (methodChannel.invokeMethod('startOnboarding', <String, dynamic>{
      'folderUid': folderUid,
      if (theme != null) 'theme': "${theme.toJson()}" else 'theme': null
    }));
  } on PlatformException catch (e) {
    throw PlatformException(code: "CAPTURE_FAILED", message: e.message);
  }
}