dynamic whereEndsWith(String value, { bool caseSensitive: true })

Matcher for matching string properties that end with value when using Query.where.

See Query.where. Example:

  var query = new Query<Employee>()
    ..where.name = whereEndsWith("son");

caseSensitive is will toggle if value is to be case sensitive equal to matched values.

Source

dynamic whereEndsWith(String value, {bool caseSensitive: true}) {
  return new StringMatcherExpression(value, StringMatcherOperator.endsWith, caseSensitive: caseSensitive);
}