checkNotEmpty static method

void checkNotEmpty(
  1. Layout layout, [
  2. String? name
])

Asserts that the layout is not empty.

Implementation

static void checkNotEmpty(Layout layout, [String? name]) {
  if (layout.length == 0) {
    throw LayoutError.empty(layout, name);
  }
}