find method

SlotsResult find()

findSlots over the range; invalid-slot-query without one.

Implementation

SlotsResult find() {
  final f = from;
  final t = to;
  if (f == null || t == null) {
    return SlotsResult(const [], [
      Problem(ProblemCode.invalidSlotQuery, Severity.error, f == null ? 'from' : 'to', 'undefined'),
    ]);
  }
  return findSlots(rules, from: f, to: t);
}