contains method

bool contains (TextDecoration other)

Whether this decoration will paint at least as much decoration as the given decoration.

Implementation

bool contains(TextDecoration other) {
  return (_mask | other._mask) == _mask;
}