static Future<int> networkConnection() async{ var network = await (Connectivity().checkConnectivity()); return getNetworkType(network); }