SequenceMatcher<T> constructor

SequenceMatcher<T>({
  1. Iterable<T>? source,
  2. Iterable<T>? target,
  3. Predicate1<T>? isJunk,
  4. bool autoJunk = true,
})

Creates a sequence matcher between source and target.

Optional isJunk identifies elements that should be ignored when finding matching blocks. When autoJunk is true (the default), popular elements in large sequences are automatically treated as junk.

Implementation

new({
  Iterable<T>? source,
  Iterable<T>? target,
  this.isJunk,
  this.autoJunk = true,
}) {
  this.source = source ?? <T>[];
  this.target = target ?? <T>[];
}