getBackgroundColor function
Implementation
getBackgroundColor(Styles styles) {
if (styles.backgroundColor != null &&
getTypeOf(styles.backgroundColor) == 'String' &&
(styles.backgroundColor as String).indexOf('linear-gradient') != -1) {
return null;
} else if (styles.backgroundColor != null) {
return HexColor(styles.backgroundColor);
} else {
return null;
}
}