apply method

String apply(
  1. String escaped
)

Wraps an already-escaped term in this position's wildcards.

Implementation

String apply(String escaped) => switch (this) {
  exact => escaped,
  anywhere => '%$escaped%',
  starting => '$escaped%',
  ending => '%$escaped',
};