regexValidRgbColor top-level constant
String
const regexValidRgbColor
Legacy rgb()/rgba() regex. (Note that if the function name is exactly "rgb(" then an alpha value is not allowed.)
Implementation
const regexValidRgbColor = r'^rgba?\(\s*'
'((?:$_intPattern|$_percentPattern))$regexComponentSeparator'
'((?:$_intPattern|$_percentPattern))$regexComponentSeparator'
'((?:$_intPattern|$_percentPattern))'
'(?:$regexComponentSeparator'
r'((?:1(?:\.0+)?|0?\.\d+|0|'
'$_percentPattern)))?'
r'\s*\)$';