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