ProfileWithId<T extends Comparable> class
abstract
A Profile that support id field for fetch data from API.
The id type (T) must be Comparable.
- Implemented types
- Annotations
-
- @immutable
Constructors
- ProfileWithId(T id, String name, Animal animal)
-
Construct Profile which has
id.
Properties
- animal → Animal
-
Animal type of this Profile.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → T
-
Identify Profile from API.
no setter
- name → String
-
User name of this Profile.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateAnimal(
Animal animal) → ProfileWithId< T> -
Return a Profile with updated
animal.override -
updateName(
String name) → ProfileWithId< T> -
Return a Profile with updated
name.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited