SequenceMatcher<T> constructor
SequenceMatcher<T> ({
- Iterable<
T> ? source, - Iterable<
T> ? target, - Predicate1<
T> ? isJunk, - 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>[];
}