telephonyTest method

dynamic telephonyTest()

Implementation

telephonyTest() async {
  isNetworkRoaming = (await telephony.isNetworkRoaming)!;
  dataState = (await telephony.cellularDataState).toString();
  dataActivity = (await telephony.cellularDataState).toString();
  networkOperator = (await telephony.networkOperator)!;
  operatorName = (await telephony.networkOperatorName)!;

  NetworkType? networkTypeIs = await telephony.dataNetworkType;

  networkType = networkTypeIs.name;

  phoneType = (await telephony.phoneType).toString();
  simOperator = (await telephony.simOperator)!;
  simState = (await telephony.simState).toString();
  serviceState = (await telephony.serviceState).toString();

  if (Platform.isAndroid) {
    //   var androidDeviceInfo = await deviceInfo.androidInfo;
    //   uuid = androidDeviceInfo.id; // unique ID on Android
  }
}