checkValue method

String? checkValue(
  1. String? serialNumber
)

Implementation

String? checkValue(String? serialNumber) {
  final value = serialNumber;
  if (serialNumber == null) {
    return null;
  }
  if (isURL(value!)) {
    final uri = Uri.parse(value);
    final imsi = uri.queryParameters['IMSI'];
    serialNumber = imsi ?? '0';
    ConditionalLogs().customLog("serial number from url is $serialNumber");
  }
  return serialNumber;
}