Future<bool> invokeMethod(String method) async { final response = await methodChannel.invokeMethod<String?>(method); return response == 'Success'; }