AvataaarStyle class

Mixed in types
Implementers
Annotations
  • @freezed

Constructors

AvataaarStyle.circle([@Default(Color(0x0065C9FF)) @ColorSerialiser() Color color])
const
factory
AvataaarStyle.fromIndex(int index, [Color? color])
creates AvataaarStyle based on the index found in AvataaarStyle.all
factory
AvataaarStyle.fromJson(Map<String, dynamic> json)
factory
AvataaarStyle.random([Color? color])
creates random AvataaarStyle
factory
AvataaarStyle.transparent([@Default(Colors.transparent) @ColorSerialiser() Color color])
const
factory

Properties

color Color
no setterinherited
copyWith → $AvataaarStyleCopyWith<AvataaarStyle>
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 transparent(AvataaarTypeStyleTransparent value), required TResult circle(AvataaarTypeStyleCircle value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult transparent(AvataaarTypeStyleTransparent value)?, TResult circle(AvataaarTypeStyleCircle value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult transparent(AvataaarTypeStyleTransparent value)?, TResult circle(AvataaarTypeStyleCircle value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult transparent(Color color)?, TResult circle(Color color)?, required TResult orElse()}) → TResult
inherited
next([Color? color]) AvataaarStyle
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
previous([Color? color]) AvataaarStyle
toIndex() int
returns the index of AvataaarStyle.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
toSvgString(String path1, String path2, String mask2) String
Individual SVG Part, only usable with the whole Avataaar
when<TResult extends Object?>({required TResult transparent(Color color), required TResult circle(Color color)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult transparent(Color color)?, TResult circle(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<AvataaarStyle>