@override int getLength() { if (cur == null) return 0; if (cur!.items != null) return cur!.items!.length; return cur!.count(); }