exactMatchComplete function

bool exactMatchComplete({
  1. required String? path,
  2. required String? oldText,
  3. required String? newText,
})

Whether an exact-match triple is complete: all three present, oldText non-empty (newText may be empty — that deletes oldText).

Implementation

bool exactMatchComplete({
  required String? path,
  required String? oldText,
  required String? newText,
}) =>
    path != null &&
    path.isNotEmpty &&
    oldText != null &&
    oldText.isNotEmpty &&
    newText != null;