toIndex method
returns the index of AvataaarFacialHair.all, or -1 if no entry is found
Implementation
@override
int toIndex() => AvataaarFacialHair.all
.map((e) => e.copyWith(color: color))
.toList()
.indexOf(this);
returns the index of AvataaarFacialHair.all, or -1 if no entry is found
@override
int toIndex() => AvataaarFacialHair.all
.map((e) => e.copyWith(color: color))
.toList()
.indexOf(this);