fromValue static method

LiteRtLmModality fromValue(
  1. int value
)

Implementation

static LiteRtLmModality fromValue(int value) => switch (value) {
  0 => kLiteRtLmModalityText,
  1 => kLiteRtLmModalityVision,
  2 => kLiteRtLmModalityAudio,
  3 => kLiteRtLmModalityVideo,
  _ => throw ArgumentError('Unknown value for LiteRtLmModality: $value'),
};