toIndex method

  1. @override
int toIndex()
override

returns the index of AvataaarSkin.all, or -1 if no entry is found

Implementation

@override
int toIndex() => AvataaarSkin.all
    .map((e) => e.copyWith(color: color))
    .toList()
    .indexOf(this);