operator == method

  1. @override
bool operator ==(
  1. Object other
)
override

Whether other is a FileSystemTreeLoader with equal settings.

skip is compared with ==, so two loaders built with separate closures are not equal even when the closures behave the same; pass the same function (for example a top-level function tear-off) to make them equal.

Implementation

@override
bool operator ==(Object other) =>
    identical(this, other) ||
    other is FileSystemTreeLoader &&
        other.includeHidden == includeHidden &&
        other.followLinks == followLinks &&
        other.skip == skip;