We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4e3616 commit b87f849Copy full SHA for b87f849
lib/src/codelessly.dart
@@ -500,7 +500,15 @@ class Codelessly {
500
501
_updateStatus(CStatus.loading(CLoadingState.initializing));
502
503
- _config = config;
+ if (config != null) {
504
+ _config = config;
505
+ }
506
+
507
+ assert(
508
+ _config != null,
509
+ 'The SDK cannot be initialized without a configuration. '
510
+ 'Make sure you are correctly passing a [CodelesslyConfig] to the SDK.',
511
+ );
512
513
log('Initializing Codelessly with firebase project ID: ${_config!.firebaseOptions.projectId}');
514
log('Cloud Functions Base URL: ${_config!.firebaseCloudFunctionsBaseURL}');
0 commit comments