fromValue static method
Implementation
static GeneratorResult fromValue(int value) => switch (value) {
0 => GENERATOR_OK,
1 => GENERATOR_ERROR,
_ => throw ArgumentError('Unknown value for GeneratorResult: $value'),
};
static GeneratorResult fromValue(int value) => switch (value) {
0 => GENERATOR_OK,
1 => GENERATOR_ERROR,
_ => throw ArgumentError('Unknown value for GeneratorResult: $value'),
};