operator == method
Whether other is a DirectoryScanner with equal settings.
skip and onError are compared with ==, so two scanners built
with separate closures are not equal even when the closures behave the
same; pass the same function (or a tear-off) to make them equal.
Implementation
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is DirectoryScanner &&
other.includeHidden == includeHidden &&
other.followLinks == followLinks &&
other.maxDepth == maxDepth &&
other.skip == skip &&
other.onError == onError;