Animal class

Implementers
Available extensions
Annotations

Constructors

Animal({int hp = 10})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
hp → int
final
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

Methods

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

Available on Animal, provided by the $Animal 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

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

Operators

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