GenericHttpService<T extends FromJsonContract<T>> class

Constructors

GenericHttpService(String baseUrl, T instance)

Properties

baseUrl String
final
hashCode int
The hash code for this object.
no setterinherited
instance → T
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

create(String endpoint, T item) Future<T>
delete(String endpoint, int id) Future<void>
fetchAll(String endpoint) Future<List<T>>
fetchOne(String endpoint, int id) Future<T>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
update(String endpoint, T item) Future<T>

Operators

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