EPlayerResult.fromValue constructor
EPlayerResult.fromValue(
- int value
Implementation
factory EPlayerResult.fromValue(int value) {
switch (value) {
case 1:
return EPlayerResult.failedToConnect;
case 2:
return EPlayerResult.abandoned;
case 3:
return EPlayerResult.kicked;
case 4:
return EPlayerResult.incomplete;
case 5:
return EPlayerResult.completed;
default:
throw UnknownEnumValueException(
"Unknown value for 'EPlayerResult'. The value was: '$value'",
);
}
}