GenericHttpService<T extends FromJsonContract<T> > class
Constructors
- GenericHttpService(String baseUrl, T instance)
Properties
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