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