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