removeObjHex property

String get removeObjHex

Removes the hex color code from an object's string.

Implementation

String get removeObjHex {
  if (!contains('#')) return this;
  final head = substring(0, indexOf('#'));
  final tail = substring(indexOf('('));
  return '$head$tail';
}