recipeFor method

NativeBuildRecipe? recipeFor(
  1. NativeTarget target
)

Find the first recipe that matches the given target.

Implementation

NativeBuildRecipe? recipeFor(NativeTarget target) {
  for (final entry in recipes) {
    if (entry.pattern.matches(target)) {
      return entry.recipe;
    }
  }
  return null;
}