AvataaarAccessories class

Mixed-in types
Implementers
Annotations
  • @freezed

Constructors

AvataaarAccessories.blank()
const
factory
AvataaarAccessories.fromIndex(int index)
creates AvataaarAccessories based on the index found in AvataaarAccessories.all
factory
AvataaarAccessories.fromJson(Map<String, dynamic> json)
factory
AvataaarAccessories.kurt()
const
factory
AvataaarAccessories.prescription01()
const
factory
AvataaarAccessories.prescription02()
const
factory
AvataaarAccessories.random()
creates random AvataaarAccessories
factory
AvataaarAccessories.round()
const
factory
AvataaarAccessories.sunglasses()
const
factory
AvataaarAccessories.wayfarers()
const
factory

Properties

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 blank(AvataaarTypeAccessoriesBlank value), required TResult kurt(AvataaarTypeAccessoriesKurt value), required TResult prescription01(AvataaarTypeAccessoriesPrescription01 value), required TResult prescription02(AvataaarTypeAccessoriesPrescription02 value), required TResult round(AvataaarTypeAccessoriesRound value), required TResult sunglasses(AvataaarTypeAccessoriesSunglasses value), required TResult wayfarers(AvataaarTypeAccessoriesWayfarers value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult blank(AvataaarTypeAccessoriesBlank value)?, TResult kurt(AvataaarTypeAccessoriesKurt value)?, TResult prescription01(AvataaarTypeAccessoriesPrescription01 value)?, TResult prescription02(AvataaarTypeAccessoriesPrescription02 value)?, TResult round(AvataaarTypeAccessoriesRound value)?, TResult sunglasses(AvataaarTypeAccessoriesSunglasses value)?, TResult wayfarers(AvataaarTypeAccessoriesWayfarers value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult blank(AvataaarTypeAccessoriesBlank value)?, TResult kurt(AvataaarTypeAccessoriesKurt value)?, TResult prescription01(AvataaarTypeAccessoriesPrescription01 value)?, TResult prescription02(AvataaarTypeAccessoriesPrescription02 value)?, TResult round(AvataaarTypeAccessoriesRound value)?, TResult sunglasses(AvataaarTypeAccessoriesSunglasses value)?, TResult wayfarers(AvataaarTypeAccessoriesWayfarers value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult blank()?, TResult kurt()?, TResult prescription01()?, TResult prescription02()?, TResult round()?, TResult sunglasses()?, TResult wayfarers()?, required TResult orElse()}) → TResult
inherited
next() AvataaarAccessories
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
previous() AvataaarAccessories
toIndex() int
returns the index of AvataaarAccessories.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() String
toSvgString() String
Individual SVG Part, only usable with the whole Avataaar
when<TResult extends Object?>({required TResult blank(), required TResult kurt(), required TResult prescription01(), required TResult prescription02(), required TResult round(), required TResult sunglasses(), required TResult wayfarers()}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult blank()?, TResult kurt()?, TResult prescription01()?, TResult prescription02()?, TResult round()?, TResult sunglasses()?, TResult wayfarers()?}) → 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<AvataaarAccessories>