ERemoteStoragePlatform.fromValue constructor
ERemoteStoragePlatform.fromValue(
- int value
Implementation
factory ERemoteStoragePlatform.fromValue(int value) {
switch (value) {
case -1:
return ERemoteStoragePlatform.all;
case 0:
return ERemoteStoragePlatform.none;
case 1:
return ERemoteStoragePlatform.windows;
case 2:
return ERemoteStoragePlatform.osx;
case 4:
return ERemoteStoragePlatform.ps3;
case 8:
return ERemoteStoragePlatform.linux;
case 16:
return ERemoteStoragePlatform.switch_;
case 32:
return ERemoteStoragePlatform.android;
case 64:
return ERemoteStoragePlatform.ios;
default:
throw UnknownEnumValueException(
"Unknown value for 'ERemoteStoragePlatform'. The value was: '$value'",
);
}
}