next method

Implementation

AvataaarAccessories next() {
  final i = toIndex();
  final nextI = (i + 1) >= all.length ? 0 : (i + 1);
  return AvataaarAccessories.fromIndex(nextI);
}