exportBlendMode function
Implementation
String? exportBlendMode(BlendMode? blendMode) {
if (blendMode == null) {
return null;
}
String rt = "srcIn";
if (blendMode == BlendMode.clear) {
rt = "clear";
}
if (blendMode == BlendMode.src) {
rt = "src";
}
if (blendMode == BlendMode.dst) {
rt = "dst";
}
if (blendMode == BlendMode.srcOver) {
rt = "srcOver";
}
if (blendMode == BlendMode.dstOver) {
rt = "dstOver";
}
if (blendMode == BlendMode.srcIn) {
rt = "srcIn";
}
if (blendMode == BlendMode.dstIn) {
rt = "dstIn";
}
if (blendMode == BlendMode.srcOut) {
rt = "srcOut";
}
if (blendMode == BlendMode.dstOut) {
rt = "dstOut";
}
if (blendMode == BlendMode.srcATop) {
rt = "srcATop";
}
if (blendMode == BlendMode.dstATop) {
rt = "dstATop";
}
if (blendMode == BlendMode.xor) {
rt = "xor";
}
if (blendMode == BlendMode.plus) {
rt = "plus";
}
if (blendMode == BlendMode.modulate) {
rt = "modulate";
}
if (blendMode == BlendMode.screen) {
rt = "screen";
}
if (blendMode == BlendMode.overlay) {
rt = "overlay";
}
if (blendMode == BlendMode.darken) {
rt = "darken";
}
if (blendMode == BlendMode.lighten) {
rt = "lighten";
}
if (blendMode == BlendMode.colorDodge) {
rt = "colorDodge";
}
if (blendMode == BlendMode.colorBurn) {
rt = "colorBurn";
}
if (blendMode == BlendMode.hardLight) {
rt = "hardLight";
}
if (blendMode == BlendMode.softLight) {
rt = "softLight";
}
if (blendMode == BlendMode.difference) {
rt = "difference";
}
if (blendMode == BlendMode.exclusion) {
rt = "exclusion";
}
if (blendMode == BlendMode.multiply) {
rt = "multiply";
}
if (blendMode == BlendMode.hue) {
rt = "hue";
}
if (blendMode == BlendMode.saturation) {
rt = "saturation";
}
if (blendMode == BlendMode.color) {
rt = "color";
}
if (blendMode == BlendMode.luminosity) {
rt = "luminosity";
}
return rt;
}