@override Future<bool?> isNetworkRestricted() async { try { return await methodChannel.invokeMethod<bool>('isNetworkRestricted'); } on PlatformException { return false; } }