AvataaarHair class sealed

Implemented types
Mixed-in types
Implementers
Annotations
  • @MappableClass.new(includeCustomMappers: [ColorMapper()])

Constructors

AvataaarHair.fromIndex(int index, [Color? color])
creates AvataaarHair based on the index found in AvataaarHair.all
factory
AvataaarHair.random([Color? color])
creates random AvataaarHair
factory

Properties

color Color
final
copyWith AvataaarHairCopyWith<AvataaarHair, AvataaarHair, AvataaarHair>
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

next([Color? color]) AvataaarHair
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
previous([Color? color]) AvataaarHair
toIndex() int
returns the index of AvataaarHair.all, or -1 if no entry is found
override
toJson() String
inherited
toLabel([String languageCode = 'en']) String
based on languageCode and LocalizationStrings returns the label
override
toMap() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
toSvgPart() String
toSvgString() String
Individual SVG Part, only usable with the whole Avataaar

Operators

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

Static Properties

fromJson AvataaarHair Function(String json)
final
fromMap AvataaarHair Function(Map<String, dynamic> map)
final

Static Methods

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