Avataaar class

Annotations
  • @freezed

Constructors

Avataaar({@Default(AvataaarHair.longHairStraight()) AvataaarHair hair, @Default(AvataaarAccessories.blank()) AvataaarAccessories accessory, @Default(AvataaarFacialHair.blank()) AvataaarFacialHair facialHair, @Default(AvataaarClothes.blazerShirt()) AvataaarClothes clothes, @Default(AvataaarGraphics.skull()) AvataaarGraphics graphics, @Default(AvataaarEyes.default0()) AvataaarEyes eyes, @Default(AvataaarEyebrow.default0()) AvataaarEyebrow eyebrow, @Default(AvataaarMouth.default0()) AvataaarMouth mouth, @Default(AvataaarSkin.light()) AvataaarSkin skin, @Default(AvataaarNose.default0()) AvataaarNose nose, @Default(AvataaarStyle.circle()) AvataaarStyle style})
const
factory
Avataaar.fromJson(Map<String, dynamic> json)
factory
Avataaar.random()
Creates a random Avataaar
factory

Properties

accessory AvataaarAccessories
no setterinherited
clothes AvataaarClothes
no setterinherited
copyWith → $AvataaarCopyWith<Avataaar>
no setterinherited
eyebrow AvataaarEyebrow
no setterinherited
eyes AvataaarEyes
no setterinherited
facialHair AvataaarFacialHair
no setterinherited
graphics AvataaarGraphics
no setterinherited
hair AvataaarHair
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
mouth AvataaarMouth
no setterinherited
nose AvataaarNose
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skin AvataaarSkin
no setterinherited
style AvataaarStyle
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
toSvg() String
Converts the Avataaar to SVG String

Operators

operator ==(Object other) bool
The equality operator.
inherited