SimCard class

Constructors

SimCard({required String iccid, required SimCardStatusEnum status, String? lpaCode, String? smdpAddress, String? activationCode, String? qrCodeUrl, String? pin, String? puk, String? number, String? iosQuickInstall, String? androidQuickInstall, EsimUsage? usage})
Returns a new SimCard instance.

Properties

activationCode ↔ String?
Activation code extracted from the LPA code.
getter/setter pair
androidQuickInstall ↔ String?
Deep-link URL for one-tap eSIM installation on Android.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
iccid ↔ String
Physical ICCID of the SIM card.
getter/setter pair
iosQuickInstall ↔ String?
Deep-link URL for one-tap eSIM installation on iOS.
getter/setter pair
lpaCode ↔ String?
Full LPA activation string in the format LPA:1$smdpAddress$activationCode. Scan this with the device camera to install.
getter/setter pair
number ↔ String?
Phone number assigned to this eSIM, if applicable.
getter/setter pair
pin ↔ String?
SIM PIN (if provided by the carrier).
getter/setter pair
puk ↔ String?
SIM PUK (if provided by the carrier).
getter/setter pair
qrCodeUrl ↔ String?
URL to a QR code image representing the LPA code.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
smdpAddress ↔ String?
SM-DP+ server address extracted from the LPA code.
getter/setter pair
status ↔ SimCardStatusEnum
The installation state of the SIM card profile on the device.
getter/setter pair
usage ↔ EsimUsage?
The data, SMS and voice usage last read; null until usage has first been read.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → SimCard?
Returns a new SimCard instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<SimCard>
mapFromJson(dynamic json) → Map<String, SimCard>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<SimCard>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.