PeepAvatar.fromAtoms constructor
const
PeepAvatar.fromAtoms({})
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;