FuseSDK constructor
Creates a new instance of the SDK.
publicApiKey
is required to authenticate with the Fuse API.
Implementation
FuseSDK(String publicApiKey, {String baseUrl = Variables.BASE_URL})
: _dio = Dio(
BaseOptions(
baseUrl: Uri.https(baseUrl, '/api').toString(),
headers: {
'Content-Type': 'application/json',
},
queryParameters: {
'apiKey': publicApiKey,
},
),
) {
_initializeModules();
}