TeadsSdk class

Entry point for the Teads SDK.

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

instance ↔ TeadsSdkApi
The injectable instance behind TeadsSdkApi. Swap this for a test double, or hold a reference to it directly instead of these statics — both reach the same native calls below.
getter/setter pair

Static Methods

configure(String appKey) → Future<void>
Configures the native SDK. Call once at app start, before creating any placement.
resetInstance() → void
Restores instance to the real native-backed implementation. A test that swaps in a double should call this in tearDown — instance has no reset of its own, and the default implementation is private, so without this a double substituted in one test poisons every test that runs after it in the same process.
setTestMode(bool enabled) → Future<void>
Puts the native SDK in test mode. Process-wide; never enable it in a release build.