getSimData static method
Récupère les données des cartes SIM disponibles
Retourne un objet SimData contenant la liste des cartes SIM Lève une exception PlatformException en cas d'erreur
Implementation
static Future<SimData> getSimData() async {
try {
final dynamic simData = await _channel.invokeMethod('getSimData');
final data = json.decode(simData);
return SimData.fromJson(data);
} on PlatformException catch (e) {
debugPrint('SimDataPlugin failed to retrieve data: ${e.message}');
rethrow;
}
}