SimPhoneInfo class
Represents the information of a single SIM card.
Constructors
- SimPhoneInfo({String? phoneNumber, required String carrierName, required String countryIso, required int slotIndex, bool isDataAvailable = false, String message = ''})
- SimPhoneInfo.fromMap(Map map)
-
Creates an instance of SimPhoneInfo from a map.
This is typically used for deserializing data from the platform channel.
factory
Properties
- carrierName → String
-
The name of the mobile network operator.
final
- countryIso → String
-
The ISO country code for the SIM provider's country.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDataAvailable → bool
-
A flag indicating if the SIM card's data is available.
final
- message → String
-
A message providing additional context, such as an error or a "not supported" message.
final
- phoneNumber → String?
-
The phone number of the SIM card. May be null if the number is not
available or if the app does not have the required permissions.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slotIndex → int
-
The slot index where the SIM card is inserted.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited