startOnline method
Future<IDCheckioResult>
startOnline(
- IDCheckioParams params,
- OnlineContext? onlineContext
override
Implementation
@override
Future<IDCheckioResult> startOnline(IDCheckioParams params, OnlineContext? onlineContext) async {
try {
String json = await (methodChannel.invokeMethod('startOnline', <String, dynamic>{
'params': params.toJson(),
if (onlineContext != null) 'onlineContext': "${onlineContext.toJson()}" else 'onlineContext': null,
}));
IDCheckioResult result = IDCheckioResult.fromJson(jsonDecode(json));
return result;
} on PlatformException catch (e) {
throw PlatformException(code: "CAPTURE_FAILED", message: e.message);
}
}