fromValue static method

LiteRtLmInputOverflowStrategy fromValue(
  1. int value
)

Implementation

static LiteRtLmInputOverflowStrategy fromValue(int value) => switch (value) {
  0 => kLiteRtLmInputOverflowStrategyChunkAndAverage,
  1 => kLiteRtLmInputOverflowStrategyTruncate,
  2 => kLiteRtLmInputOverflowStrategyError,
  _ => throw ArgumentError(
    'Unknown value for LiteRtLmInputOverflowStrategy: $value',
  ),
};