LayoutError.rank constructor

LayoutError.rank(
  1. Layout a,
  2. Layout b, [
  3. String? name
])

Constructs an error indicating incompatible ranks.

Implementation

LayoutError.rank(Layout a, Layout b, [String? name])
    : super(
          '$a and $b have incompatible rank: ${a.rank} and ${b.rank}', name);