refactor: move auth models to better_networking package

This commit is contained in:
Udhay-Adithya
2025-07-02 22:07:47 +05:30
parent 3903277aa9
commit a11c833822
28 changed files with 452 additions and 560 deletions

View File

@@ -54,6 +54,7 @@ class _BetterNetworkingExampleState extends State<BetterNetworkingExample> {
final (resp, duration, err) = await sendHttpRequest(
'G1',
APIType.rest,
AuthModel(type: APIAuthType.none),
HttpRequestModel(
url: 'https://reqres.in/api/users/2',
method: HTTPVerb.get,
@@ -80,6 +81,7 @@ class _BetterNetworkingExampleState extends State<BetterNetworkingExample> {
final (resp, duration, err) = await sendHttpRequest(
'P1',
APIType.rest,
AuthModel(type: APIAuthType.none),
HttpRequestModel(
url: 'https://reqres.in/api/users',
method: HTTPVerb.post,