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