argbFromHex static method

int? argbFromHex(
  1. String hex
)

Implementation

static int? argbFromHex(String hex) =>
    int.tryParse(hex.replaceAll("#", ""), radix: 16);