hexToInt method

int hexToInt({
  1. required String hex,
})

Implementation

int hexToInt({required String hex}) {
  return int.parse(hex.replaceFirst('#', '0xFF'));
}