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