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