fromValue static method

LightType fromValue(
  1. int value
)

Implementation

static LightType fromValue(int value) => switch (value) {
  0 => LIGHT_DIRECTIONAL,
  1 => LIGHT_POINT,
  _ => throw ArgumentError('Unknown value for LightType: $value'),
};