startsWith method

Expression<bool> startsWith(
  1. T value, {
  2. bool caseInsensitive = true,
})

Create a filter to check if the this text column starts with 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

Expression<bool> startsWith(T value, {bool caseInsensitive = true}) {
  return $composableFilter(_buildExpression(
      _StringFilterTypes.startsWith, value, caseInsensitive));
}