contains method Null safety

ExpressionInterface contains(
  1. ExpressionInterface expression,
  2. {required ExpressionInterface substring}
)

Creates a function expression which evaluates to whether the given string expression contains the given substring.

Implementation

static ExpressionInterface contains(
  ExpressionInterface expression, {
  required ExpressionInterface substring,
}) =>
    BinaryExpression('contains()', expression, substring);