contains method

Expr<bool?> contains(
  1. String text
)

Matches literal text anywhere, escaping LIKE wildcards %, _ and !.

The escaped pattern is bound as a parameter with SQL ESCAPE '!'. An empty text matches every non-NULL string. NULL inputs produce NULL.

Implementation

Expr<bool?> contains(String text) => _literalLike(text, '%', '%');