AvataaarGenerator constructor

AvataaarGenerator({
  1. Key? key,
  2. required Avataaar avataaar,
  3. required String onTranslateKey(
    1. String key
    ),
  4. void onUpdateAvataaar()?,
  5. AvataaarPicture? avataaarPicture,
  6. void onError(
    1. Exception exception
    )?,
  7. List<Color> colors = Avataaar.defaultBackgroundColors,
})

Implementation

AvataaarGenerator({
  Key? key,
  required this.avataaar,
  required this.onTranslateKey,
  this.onUpdateAvataaar,
  this.avataaarPicture,
  this.onError,
  this.colors = Avataaar.defaultBackgroundColors,
}) : super(key: key);