start method

  1. @override
Future<IDCheckioResult> start(
  1. IDCheckioParams params
)
override

Implementation

@override
Future<IDCheckioResult> start(IDCheckioParams params) async {
  try {
    String json = await (methodChannel.invokeMethod('start', params.toJson()));
    IDCheckioResult result = IDCheckioResult.fromJson(jsonDecode(json));
    return result;
  } on PlatformException catch (e) {
    throw PlatformException(code: "CAPTURE_FAILED", message: e.message);
  }
}