sim_card_code library

Classes

NetworkInfo
Represents network information.
SimCardChangeEvent
An event emitted by SimCardManager.onChanged when cellular state changes.
SimCardInfo
Represents SIM card information.
SimCardManager
Entry point of the plugin — reads SIM card and cellular network information.

Enums

NetworkGeneration
Mobile network generation (2G–5G).
NetworkType
Cellular network access technology.
SimChangeType
What kind of cellular change triggered a SimCardChangeEvent.
SimState
SIM card states.

Extensions

NetworkGenerationExtension on NetworkGeneration
Extension providing a human-readable label for a NetworkGeneration.
NetworkTypeExtension on NetworkType
Extension to parse a platform string into a NetworkType and to derive its NetworkGeneration.
SimStateExtension on SimState
Extension to convert a platform string to a SimState.

Exceptions / Errors

SimCardException
Thrown by SimCardManager methods when SimCardManager.throwOnError is enabled and an underlying platform call fails.