AddStreamConfig class
Configuration for the AddStream SDK.
This class holds the configuration settings needed to connect to the AddStream ad network.
Example:
final config = AddStreamConfig(
apiUrl: 'https://your-api-url.com',
apiKey: 'your-api-key',
timeout: Duration(seconds: 10),
);
Constructors
- AddStreamConfig({required String apiUrl, required String apiKey, String? videoApiUrl, Duration timeout = const Duration(seconds: 10)})
-
Creates an AddStream configuration.
const
Properties
- apiKey → String
-
The API key for authentication.
final
- apiUrl → String
-
The base URL for the AddStream banner ad API.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → Duration
-
The timeout duration for API requests.
final
- videoApiUrl → String?
-
The base URL for the AddStream video ad (VAST) API.
final
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