Dog class

Inheritance
Available extensions
Annotations

Constructors

Dog({int hp = 20, bool goodBoy = true})
const

Properties

goodBoy → bool
final
hashCode → int
The hash code for this object.
no setterinherited
hp → int
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
to → ArtifactModelExporter

Available on Animal, provided by the $Animal extension

no setter
to → ArtifactModelExporter

Available on Dog, provided by the $Dog extension

no setter

Methods

copyWith({int? hp, bool resetHp = _F, int? deltaHp}) → Animal

Available on Animal, provided by the $Animal extension

copyWith({int? hp, bool resetHp = _F, int? deltaHp, bool? goodBoy, bool resetGoodBoy = _F}) → Dog

Available on Dog, provided by the $Dog extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>

Available on Animal, provided by the $Animal extension

toMap() → Map<String, dynamic>

Available on Dog, provided by the $Dog extension

toString() → String
A string representation of this object.
inherited

Operators

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