AddStreamGlobal class
This class manages the global configuration for the AddStream SDK. You must call initialize before using any AddStream widgets.
Example:
void main() {
AddStreamGlobal.initialize(
AddStreamConfig(
apiUrl: 'https://your-api-url.com',
apiKey: 'your-key',
),
);
runApp(MyApp());
}
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Properties
- config → AddStreamConfig
-
Returns the current AddStream configuration.
no setter
- isInitialized → bool
-
Returns
trueif the AddStream SDK has been initialized.no setter
Static Methods
-
initialize(
AddStreamConfig config) → void - Initializes the AddStream SDK with the provided configuration.