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