AvataaarClothes class

Mixed-in types
Implementers
Annotations
  • @freezed

Constructors

AvataaarClothes.blazerShirt([@Default(Colors.black) @ColorSerialiser() Color color])
const
factory
AvataaarClothes.blazerSweater([@Default(Colors.black) @ColorSerialiser() Color color])
const
factory
AvataaarClothes.collarSweater([@Default(AvataaarClothes._defaultColor) @ColorSerialiser() Color color])
const
factory
AvataaarClothes.fromIndex(int index, [Color? color])
creates AvataaarClothes based on the index found in AvataaarClothes.all
factory
AvataaarClothes.fromJson(Map<String, dynamic> json)
factory
AvataaarClothes.graphicShirt([@Default(AvataaarClothes._defaultColor) @ColorSerialiser() Color color])
const
factory
AvataaarClothes.hoodie([@Default(AvataaarClothes._defaultColor) @ColorSerialiser() Color color])
const
factory
AvataaarClothes.overall([@Default(AvataaarClothes._defaultColor) @ColorSerialiser() Color color])
const
factory
AvataaarClothes.random([Color? color])
creates random AvataaarClothes
factory
AvataaarClothes.shirtCrewNeck([@Default(AvataaarClothes._defaultColor) @ColorSerialiser() Color color])
const
factory
AvataaarClothes.shirtScoopNeck([@Default(AvataaarClothes._defaultColor) @ColorSerialiser() Color color])
const
factory
AvataaarClothes.shirtVNeck([@Default(AvataaarClothes._defaultColor) @ColorSerialiser() Color color])
const
factory

Properties

color Color
no setterinherited
copyWith → $AvataaarClothesCopyWith<AvataaarClothes>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult blazerShirt(AvataaarTypeClothesBlazerShirt value), required TResult blazerSweater(AvataaarTypeClothesBlazerSweater value), required TResult collarSweater(AvataaarTypeClothesColarSweater value), required TResult graphicShirt(AvataaarTypeClothesGraphicShirt value), required TResult hoodie(AvataaarTypeClothesHoodie value), required TResult overall(AvataaarTypeClothesOverall value), required TResult shirtCrewNeck(AvataaarTypeClothesShirtCrewNeck value), required TResult shirtScoopNeck(AvataaarTypeClothesShirtScoopNeck value), required TResult shirtVNeck(AvataaarTypeClothesShirtVNeck value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult blazerShirt(AvataaarTypeClothesBlazerShirt value)?, TResult blazerSweater(AvataaarTypeClothesBlazerSweater value)?, TResult collarSweater(AvataaarTypeClothesColarSweater value)?, TResult graphicShirt(AvataaarTypeClothesGraphicShirt value)?, TResult hoodie(AvataaarTypeClothesHoodie value)?, TResult overall(AvataaarTypeClothesOverall value)?, TResult shirtCrewNeck(AvataaarTypeClothesShirtCrewNeck value)?, TResult shirtScoopNeck(AvataaarTypeClothesShirtScoopNeck value)?, TResult shirtVNeck(AvataaarTypeClothesShirtVNeck value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult blazerShirt(AvataaarTypeClothesBlazerShirt value)?, TResult blazerSweater(AvataaarTypeClothesBlazerSweater value)?, TResult collarSweater(AvataaarTypeClothesColarSweater value)?, TResult graphicShirt(AvataaarTypeClothesGraphicShirt value)?, TResult hoodie(AvataaarTypeClothesHoodie value)?, TResult overall(AvataaarTypeClothesOverall value)?, TResult shirtCrewNeck(AvataaarTypeClothesShirtCrewNeck value)?, TResult shirtScoopNeck(AvataaarTypeClothesShirtScoopNeck value)?, TResult shirtVNeck(AvataaarTypeClothesShirtVNeck value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult blazerShirt(Color color)?, TResult blazerSweater(Color color)?, TResult collarSweater(Color color)?, TResult graphicShirt(Color color)?, TResult hoodie(Color color)?, TResult overall(Color color)?, TResult shirtCrewNeck(Color color)?, TResult shirtScoopNeck(Color color)?, TResult shirtVNeck(Color color)?, required TResult orElse()}) → TResult
inherited
next([Color? color]) AvataaarClothes
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
previous([Color? color]) AvataaarClothes
toIndex() int
returns the index of AvataaarClothes.all, or -1 if no entry is found
override
toJson() Map<String, dynamic>
inherited
toLabel([String languageCode = 'en']) String
based on languageCode and LocalizationStrings returns the label
override
toString() String
A string representation of this object.
inherited
toSvgPart([AvataaarGraphics? graphics]) String
toSvgString([AvataaarGraphics? graphics]) String
Individual SVG Part, only usable with the whole Avataaar
when<TResult extends Object?>({required TResult blazerShirt(Color color), required TResult blazerSweater(Color color), required TResult collarSweater(Color color), required TResult graphicShirt(Color color), required TResult hoodie(Color color), required TResult overall(Color color), required TResult shirtCrewNeck(Color color), required TResult shirtScoopNeck(Color color), required TResult shirtVNeck(Color color)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult blazerShirt(Color color)?, TResult blazerSweater(Color color)?, TResult collarSweater(Color color)?, TResult graphicShirt(Color color)?, TResult hoodie(Color color)?, TResult overall(Color color)?, TResult shirtCrewNeck(Color color)?, TResult shirtScoopNeck(Color color)?, TResult shirtVNeck(Color color)?}) → TResult?
inherited

Operators

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

Static Methods

toHeader([String languageCode = 'en']) String
returns the header string based on the languageCode

Constants

all → const List<AvataaarClothes>