From my perspective, when you call access color.value, the return type is an integer which is then converted to a string using value.toString() in the method above. There's no how we'd end up with '#' in the string which makes the removeAll('#') redundant.
From my perspective, when you call access
color.value
, the return type is an integer which is then converted to a string usingvalue.toString()
in the method above. There's no how we'd end up with '#' in the string which makes theremoveAll('#')
redundant.