initialize method

Future<bool> initialize({
  1. required String baseUrl,
  2. Map<String, String>? headers,
  3. int? connectionTimeout,
  4. int? receiveTimeout,
})

Initialize the Magento plugin with base URL and configuration.

This method must be called before using any other functionality. It sets up the connection to the Magento backend.

baseUrl is the base URL of your Magento instance (e.g., "https://yourstore.com") headers optional custom headers to include with all requests connectionTimeout timeout for establishing connection in milliseconds receiveTimeout timeout for receiving data in milliseconds

Returns true if initialization was successful, false otherwise.

Implementation

Future<bool> initialize({
  required String baseUrl,
  Map<String, String>? headers,
  int? connectionTimeout,
  int? receiveTimeout,
}) {
  throw UnimplementedError('initialize() has not been implemented.');
}