hex function
return a hex color string, example: FFAABBCC.
alpha
determines whether or not to add alpha string 'FF'.
Implementation
String hex({bool alpha = true}) {
final hex = string(pools: [number], self: 'ABCDEF', min: 6);
return '${alpha ? 'FF' : ''}$hex';
}