Our database has colors saved as a String like \"#AABBCC\" and so I\'m basically looking for a function like this: Color.parseColor(\"#AABBCC\"); f
String
Color.parseColor(\"#AABBCC\");
A simple string replacement would get it in the right syntax:
String html_colour = '#AAABBCC'; String fixed_colour = html_colour.replace(new RegExp(r'#'), '0xFF');
That should do it.