argbFromHex static method

int? argbFromHex(
  1. String hex
)

Implementation

static int? argbFromHex(String hex) {
  return int.tryParse(hex.replaceAll('#', ''), radix: 16);
}