fromWire static method

FeedbackPlatform? fromWire(
  1. String? value
)

Parses a wire string value into its matching FeedbackPlatform enum instance.

Returns null if value is null or does not match any known enum wire values.

Example

final p1 = FeedbackPlatform.fromWire('android'); // FeedbackPlatform.android
final p2 = FeedbackPlatform.fromWire('unknown'); // null

Implementation

static FeedbackPlatform? fromWire(String? value) {
  if (value == null) return null;
  for (final p in FeedbackPlatform.values) {
    if (p.wireValue == value) return p;
  }
  return null;
}