init method
Implementation
Future init({required String apiKey}) async {
_channel.invokeMethod('init', {'apiKey': apiKey});
_channel.setMethodCallHandler((call) async {
if (call.method == 'onSucessDeeplink') {
_onSucessDeeplink?.call(
call.arguments['clickedTenjinLink'] as bool,
call.arguments['isFirstSession'] as bool,
call.arguments['data'] as Map<String, String>,
);
}
return Future.value();
});
}