matches method
Whether this pattern matches the given target.
Implementation
bool matches(NativeTarget target) {
if (os != null && target.os != os) return false;
if (architecture != null && target.architecture != architecture)
return false;
if (iOSSdk != null && target.iOSSdk != iOSSdk) return false;
return true;
}