fromString static method

MeshConnectionState fromString(
  1. String value
)

Create from string value

Implementation

static MeshConnectionState fromString(String value) {
  return MeshConnectionState.values.firstWhere(
    (state) => state.name == value,
    orElse: () => MeshConnectionState.disconnected,
  );
}