intersection method Null safety

PlatformSelector intersection(
  1. PlatformSelector other
)

Returns a new PlatformSelector that matches only platforms matched by both this and other.

Implementation

PlatformSelector intersection(PlatformSelector other) {
  if (other == PlatformSelector.all) return this;
  return PlatformSelector._(_inner.intersection(other._inner));
}