sendAdmobKey static method
Implementation
static Future<void> sendAdmobKey(String admobKey) async {
if (Platform.isAndroid) {
try {
await platform.invokeMethod('setAdmobKey', {'admob_key': admobKey});
} on PlatformException catch (e) {
if (kDebugMode) {
print("Error: $e");
}
}
}
}