getSimData static method

Future<SimInfo> getSimData()

Implementation

static Future<SimInfo> getSimData() async {
  try {
    dynamic simData = await _channel.invokeMethod('getSimData');
    var data = json.decode(simData);
    SimInfo simCards = SimInfo.fromJson(data);
    return simCards;
  } on PlatformException catch (e) {
    debugPrint('SimDataPlugin failed to retrieve data $e');
    rethrow;
  }
}