hexToColor static method

Color hexToColor(
  1. String code
)

Get color from the hex value

Implementation

static Color hexToColor(String code) {
  return Color(int.parse(code.substring(1, 7), radix: 16) + 0xFF000000);
}