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