initAATKit method
- AATKitConfiguration configuration
Initializes the AATKit library. Should be called once during application initialization before any other calls to AATKit.
Implementation
Future<void> initAATKit(AATKitConfiguration configuration) async {
// ignore: deprecated_member_use_from_same_package
if (configuration.shouldSkipRules != null) {
aatkitLog(
"Warning: 'shouldSkipRules' is deprecated and will be removed in a future release.");
}
try {
await AatkitFlutterPluginPlatform.instance.initAATKit(configuration);
} on PlatformException catch (e) {
aatkitLog("PlatformException, error: $e");
}
}