Top class
- Implemented types
Constructors
- Top({required TopType topType, AccessoriesType accessoriesType = AccessoriesType.blank, HatColor hatColor = HatColor.black, HairColor hairColor = HairColor.black, required FacialHair facialHair})
- Top.fromJson(String source)
-
Decode from json
factory
-
Top.fromMap(Map<
String, dynamic> map) -
Transform from map to Top
factory
Properties
- accessoriesType ↔ AccessoriesType
-
getter/setter pair
- facialHair ↔ FacialHair
-
getter/setter pair
- hairColor ↔ HairColor
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- hatColor ↔ HatColor
-
getter/setter pair
- pieces → List
-
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- topType ↔ TopType
-
getter/setter pair
Methods
-
copyWith(
{TopType? topType, AccessoriesType? accessoriesType, HatColor? hatColor, HairColor? hairColor, FacialHair? facialHair}) → Top -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - Encode to json
-
toMap(
) → Map< String, dynamic> - Transform from Top to map
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override