initSdk function
Initializes the SDK with the specified environment.
Example:
await initSdk(environment: 'dev');
Implementation
Future<void> initSdk({required String environment}) async {
try {
await ApiService.initialize(environment: environment);
print("SDK Initialized Successfully with $environment env.");
} catch (e) {
print("Error initializing SDK: $e");
// Handle initialization error appropriately
rethrow; // Rethrow the error to propagate it to the caller
}
}