MockTeadsSdk class

A test double for TeadsSdkApi, with no MethodChannel involved.

Install with TeadsSdk.instance = MockTeadsSdk(); so every call through TeadsSdk's statics reaches this instead of the real native SDK.

Implemented types

Constructors

MockTeadsSdk()

Properties

configureCallCount ↔ int
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
lastConfiguredAppKey ↔ String?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
testMode ↔ bool
The last value passed to setTestMode.
getter/setter pair

Methods

configure(String appKey) → Future<void>
See TeadsSdk.configure.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setTestMode(bool enabled) → Future<void>
See TeadsSdk.setTestMode.
override
toString() → String
A string representation of this object.
inherited

Operators

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