@override Future adtime() async { try { var result = await platform.invokeMethod('adtime'); return result; } on PlatformException { return 2; } }