startsWith static method

bool startsWith(
  1. List<int> source,
  2. List<int> checker
)

Implementation

static bool startsWith(List<int> source, List<int> checker) {
  for (int i = 0; i < checker.length; i++) {
    if (source[i] != checker[i]) return false;
  }

  return true;
}