checkProps method

dynamic checkProps()

Implementation

checkProps() {
  if (widget.count != widget.colors.length) {
    throw UnimplementedError(
        '${widget.colors.length} colors provided while the count is ${widget.count}. Ensure both colors and count have the same length');
  } else if (widget.count != widget.header.length) {
    throw UnimplementedError(
        '${widget.header.length} header(s) provided while the count is ${widget.count}. Ensure both header and count have the same length');
  }
}