fromWire static method

GameHapticStyle? fromWire(
  1. String value
)

The style for a wire value, or null for an unknown one.

Implementation

static GameHapticStyle? fromWire(String value) {
  for (final style in values) {
    if (style.name == value) return style;
  }
  return null;
}