remove method
- String name
Removes the paint named name.
Returns true if it was found and removed. The default paint is not addressable and cannot be removed this way.
Implementation
bool remove(String name) {
final entry = _index.remove(name);
if (entry == null) return false;
_paints.remove(entry);
entry._palette = null;
return true;
}