ndim method Null safety

int ndim(
  1. List list
)

Implementation

int ndim(List list) {
  return getDim(list).length;
}