fromValue static method
Gets a possible CrossOrigin instance from String value.
Implementation
static CrossOrigin? fromValue(String? value) {
if (value != null) {
try {
return CrossOrigin.values
.firstWhere((element) => element.toValue() == value);
} catch (e) {
return null;
}
}
return null;
}