start static method
Future<MyIdResult>
start({
- required MyIdConfig config,
- MyIdIOSAppearance iosAppearance = const MyIdIOSAppearance(),
Implementation
static Future<MyIdResult> start({
required MyIdConfig config,
MyIdIOSAppearance iosAppearance = const MyIdIOSAppearance(),
}) async {
final confingJson = config.toJson();
final result = await _channel.invokeMethod('startSdk', {
"config": confingJson,
"appearance": iosAppearance.toJson(),
});
return MyIdResult.fromJson(
_jsonDecoder.convert(
_jsonEncoder.convert(result),
),
);
}