getSimCards method
Returns Available SimCards
Note:
READ_PHONE_STATE
Permission is Required
Implementation
@override
Future<List<SimCard>> getSimCards() async {
List<SimCard> simCards = [];
final simCardsList = await methodChannel
.invokeListMethod("getSimCards");
for (var simJson in simCardsList ?? []) {
simCards.add(SimCard.fromMap(Map<String, dynamic>.from(simJson)));
}
return simCards;
}