fromValue static method
Creates a VideoOrientation from an integer value.
This method is used when parsing orientation data from native platforms.
If the provided value doesn't match any known orientation, returns none.
Parameters:
value: Integer value representing the orientation (0=none, 1=portrait, 2=landscape)
Implementation
static VideoOrientation fromValue(int value) {
return VideoOrientation.values
.firstWhere((e) => e.value == value, orElse: () => none);
}