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