fromValue static method
Implementation
static StrokeType fromValue(int value) {
switch (value) {
case 0:
return StrokeType.noEvent;
case 1:
return StrokeType.other;
case 2:
return StrokeType.serve;
case 3:
return StrokeType.forehand;
case 4:
return StrokeType.backhand;
case 5:
return StrokeType.smash;
default:
throw ArgumentError.value(value);
}
}