From 8eb10f20de7d429b3bfe5ccbd365e0bc6a82946b Mon Sep 17 00:00:00 2001 From: Anthony Date: Tue, 23 Jan 2024 21:00:34 +0700 Subject: [PATCH] update networking docs --- resources/docs/5.20.0/networking.md | 45 +++++++++++++++-------------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/resources/docs/5.20.0/networking.md b/resources/docs/5.20.0/networking.md index e3155b4..de46176 100644 --- a/resources/docs/5.20.0/networking.md +++ b/resources/docs/5.20.0/networking.md @@ -28,7 +28,7 @@ Your API Services directory is located here `app/networking/*` Fresh copies of {{ config('app.name') }} will include a default API Service `app/networking/api_service.dart`. ```dart -class ApiService extends BaseApiService { +class ApiService extends NyApiService { ApiService({BuildContext? buildContext}) : super(buildContext); @override @@ -46,7 +46,7 @@ class ApiService extends BaseApiService { } ``` -Variables you can override using the BaseApiService class. +Variables you can override using the NyApiService class. - `baseUrl` - This is the base URL for the API, e.g. "https://jsonplaceholder.typicode.com". - `interceptors` - Here, you can add Dio interceptors. Learn more about interceptors here. @@ -62,8 +62,8 @@ Under the hood, the base networking class uses fetchUsers() async { return await network(