AvataaarStyle class sealed
- Implemented types
- Mixed-in types
- Implementers
- Annotations
-
- @MappableClass.new(includeCustomMappers: [ColorMapper()])
Constructors
- AvataaarStyle.fromIndex(int index, [Color? color])
-
creates AvataaarStyle based on the index found in AvataaarStyle.all
factory
- AvataaarStyle.random([Color? color])
-
creates random AvataaarStyle
factory
Properties
- color → Color
-
final
-
copyWith
→ AvataaarStyleCopyWith<
AvataaarStyle, AvataaarStyle, 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
-
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(
) → String -
inherited
-
toLabel(
[String languageCode = 'en']) → String -
based on
languageCodeand LocalizationStrings returns the labeloverride -
toMap(
) → Map< String, dynamic> -
inherited
-
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
all
→ List<
AvataaarStyle> -
final
- fromJson → AvataaarStyle Function(String json)
-
final
-
fromMap
→ AvataaarStyle Function(Map<
String, dynamic> map) -
final