Companion class
A class that represents a companion or a familiar
Constructors
-
Companion({required String name, required Gender gender, required CompanionType companionType, required String appearance, required String personality, required List<
String> skills, required List<String> quirks}) -
const
- Companion.fromJson(String source)
-
factory
-
Companion.fromMap(Map<
String, dynamic> map) -
factory
-
Companion.fromShallowMap(Map<
String, dynamic> map) -
factory
Properties
- appearance → String
-
The appearance of the companion
final
- companionType → CompanionType
-
The companion type
final
- gender → Gender
-
The gender of the companion
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- name → String
-
The name of the companion
final
- personality → String
-
The personality of the companion
final
-
quirks
→ List<
String> -
The quirks the companion has
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
skills
→ List<
String> -
The skills of the companion
final
Methods
-
copyWith(
{String? name, Gender? gender, CompanionType? companionType, String? appearance, String? personality, List< String> ? skills, List<String> ? quirks}) → Companion -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
covariant Companion other) → bool -
The equality operator.
override