simplified code across the app and consolidated duplicated helpers
This commit is contained in:
@@ -23,11 +23,12 @@ abstract class TalkApi<T extends ApiResponse?> {
|
||||
|
||||
TalkApi(this.path, this.body, {this.headers, this.getParameters});
|
||||
|
||||
/// Defaults to a plain GET; endpoints with a body or another verb override it.
|
||||
Future<http.Response>? request(
|
||||
Uri uri,
|
||||
ApiParams? body,
|
||||
Map<String, String>? headers,
|
||||
);
|
||||
) => http.get(uri, headers: headers);
|
||||
T assemble(String raw);
|
||||
|
||||
/// Override to parse large payloads off the UI isolate (e.g. via `compute`
|
||||
|
||||
Reference in New Issue
Block a user