fromNative static method

BleConnectionState fromNative(
  1. int value
)

Implementation

static BleConnectionState fromNative(int value) => switch (value) {
  1 => BleConnectionState.connected,
  _ => BleConnectionState.disconnected,
};