PeepAvatar.fromPeep constructor

PeepAvatar.fromPeep({
  1. Key? key,
  2. required Peep peep,
  3. Color? backgroundColor,
  4. Clip? clipBehavior,
  5. double? size,
})

Creates a new instance of PeepAvatar based on a Peep.

Implementation

PeepAvatar.fromPeep({
  Key? key,
  required Peep peep,
  Color? backgroundColor,
  Clip? clipBehavior,
  double? size,
}) : this.fromAtoms(
        key: key,
        face: peep.face,
        head: peep.head,
        accessory: peep.accessory,
        facialHair: peep.facialHair,
        backgroundColor: backgroundColor,
        clipBehavior: clipBehavior,
        size: size,
      );