length method

int length()

Implementation

int length() {
  return arr == null ? 0 : arr!.length;
}