like method

Expression<bool> like(
  1. String regex, {
  2. String? escapeChar,
})

Whether this column matches the given expression.

For details on which patterms are valid and how they are interpreted, check out this tutorial or the SQLite documentation.

Implementation

Expression<bool> like(String regex, {String? escapeChar}) {
  return _LikeOperator(
    this,
    Variable.withString(regex),
    escape: switch (escapeChar) {
      null => null,
      final char => Constant<String>(char),
    },
  );
}