CodelesslyConfig class

Holds initialization configuration options for the SDK.

Constructors

CodelesslyConfig({required String authToken, String? slug, bool automaticallySendCrashReports = false, bool isPreview = false, bool preload = true, FirebaseOptions? firebaseOptions, String firebaseInstanceName = kCodelesslyFirebaseApp, String firebaseCloudFunctionsBaseURL = defaultFirebaseCloudFunctionsBaseURL, String baseURL = defaultBaseURL, PublishSource? publishSource})
Creates a new instance of CodelesslyConfig.

Properties

authToken String
The SDK auth token used to authenticate the SDK with the Codelessly servers.
final
automaticallySendCrashReports bool
Allows the SDK to automatically send crash reports back to Codelessly's servers for developer analysis.
final
baseURL String
Base URL of the environment to use. Helpful for hosted video players.
final
firebaseCloudFunctionsBaseURL String
Base URL of the Firebase Cloud Functions instance to use.
final
firebaseInstanceName String
The unique name of the Firebase instance to use. Defaults to kCodelesslyFirebaseApp.
final
firebaseOptions → FirebaseOptions
The project ID of the Firebase project to use. This is used to initialize Firebase.
final
hashCode int
The hash code for this object.
no setterinherited
isPreview bool
Whether CodelesslyWidgets should show the preview versions of their layouts.
final
preload bool
Notifies the data manager to download all layouts and fonts of the configured project during the initialization process of the SDK.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
publishSource PublishSource
The source of the data that should be used when initializing the SDK. The value will be determined by the isPreview and authToken values.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slug String?
A project slug configured in the publish settings of the Codelessly editor.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
uniqueID String
A convenience getter that returns a non-null unique identifier for this CodelesslyConfig instance since either authToken or slug will be non-null.
no setter

Methods

copyWith({String? authToken, String? slug, bool? automaticallySendCrashReports, bool? isPreview, bool? preload, bool? staggerDownloadQueue, FirebaseOptions? firebaseOptions, String? firebaseCloudFunctionsBaseURL, String? baseURL, String? firebaseInstanceName, PublishSource? publishSource}) CodelesslyConfig
Creates a new instance of CodelesslyConfig with the provided optional parameters.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited