contains method
Return true if this node or any of its children recursively match the
supplied pattern
Implementation
@override
bool contains(Pattern pattern) {
final checkbox = this.checkbox;
final body = this.body;
return indent.contains(pattern) ||
bullet.contains(pattern) ||
checkbox != null && checkbox.contains(pattern) ||
body != null && body.contains(pattern);
}