contains method

bool contains(
  1. 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;
}