PeepAvatar.fromAtoms constructor

const PeepAvatar.fromAtoms({
  1. Key? key,
  2. required PeepAtom face,
  3. required PeepAtom head,
  4. required PeepAtom facialHair,
  5. required PeepAtom accessory,
  6. Color? backgroundColor,
  7. Clip? clipBehavior,
  8. double? size,
})

Creates a new instance of PeepAvatar based on individual PeepAtoms.

Implementation

const PeepAvatar.fromAtoms({
  super.key,
  required this.face,
  required this.head,
  required this.facialHair,
  required this.accessory,
  this.backgroundColor,
  Clip? clipBehavior,
  double? size,
})  : assert(
        size == null || size <= 256,
        'Size cannot be greater than 256',
      ),
      clipBehavior = clipBehavior ?? Clip.antiAlias,
      size = size ?? defaultSize;