simState property

Future<SimState> simState

Returns a constant indicating the state of the default SIM card.

Returns:

Future<SimState>

Implementation

Future<SimState> get simState async {
  final int? state =
      await _foregroundChannel.invokeMethod<int>(GET_SIM_STATE);
  if (state != null) {
    return SimState.values[state];
  } else {
    return SimState.UNKNOWN;
  }
}