contains method

ComposableFilter contains(
  1. T value, {
  2. bool caseInsensitive = true,
})

Create a filter to check if the this text column contains a substring

Setting caseInsensitive to false will have no effect unless the database in configured to use case sensitive like expressions.

See https://www.sqlitetutorial.net/sqlite-like/ for more information on how to the like expression works.

Implementation

ComposableFilter contains(T value, {bool caseInsensitive = true}) {
  return $composableFilter(
      _buildExpression(_StringFilterTypes.contains, value, caseInsensitive));
}