fromValue static method

LiteRtLmInputDataType fromValue(
  1. int value
)

Implementation

static LiteRtLmInputDataType fromValue(int value) => switch (value) {
  0 => kLiteRtLmInputDataTypeText,
  1 => kLiteRtLmInputDataTypeImage,
  2 => kLiteRtLmInputDataTypeImageEnd,
  3 => kLiteRtLmInputDataTypeAudio,
  4 => kLiteRtLmInputDataTypeAudioEnd,
  _ => throw ArgumentError('Unknown value for LiteRtLmInputDataType: $value'),
};