Helper/network_utils library
Classes
- AppStateController
- Controller for managing app state
Constants
- USER_ID → const String
- USER_LOGIN → const String
- Constants for storage keys
- USER_TOKEN → const String
Properties
- BASE_URL ↔ String
-
Base URL for API requests - to be set by the user
getter/setter pair
- isDebugMode → RxBool
-
Reactive variable for debug mode
final
Functions
-
dioGet(
String endUrl, {bool useBaseUrl = true, String? loginRouteName}) → Future< Response?> - Perform a GET request
-
dioPost(
{bool? isPost = true, dynamic data, String? endUrl, bool? sendFile = false, String? loginRouteName}) → Future< Response?> - Perform a POST or PUT request
-
initNetworkUtils(
{required String baseUrl, bool debug = false}) → void - Initialize the network utilities