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