colorFromString function

Color colorFromString(
  1. String color
)

Implementation

Color colorFromString(String color) {
  var valueString = color.replaceAll('#', '');
  var value = int.parse(valueString, radix: 16);
  return Color(value);
}