init method
Initialize adspostx with sdkId, sdkId should be non-empty valid String. Returns a bool indicating that if init call is successful or not. In case of error it can also throw exceptions.
Implementation
@override
Future<bool> init(String sdkId) async {
try {
final statusMessage = await methodChannel.invokeMethod(
"init",
{"sdkId": sdkId},
);
return statusMessage;
} on PlatformException catch (error) {
log(error.message as String);
rethrow;
}
}