checkEqualLength static method

void checkEqualLength(
  1. Layout a,
  2. Layout b, [
  3. String? name
])

Asserts that the layouts a and b have the same length.

Implementation

static void checkEqualLength(Layout a, Layout b, [String? name]) {
  if (a.length != b.length) {
    throw LayoutError.length(a, b, name);
  }
}