RewardedHandler class

Inheritance

Constructors

RewardedHandler({required String adUnitId})

Properties

adUnitId → String
final
hashCode → int
The hash code for this object.
no setterinherited
isIdle → bool
no setterinherited
isLoaded → bool
no setterinherited
isPreloading → bool
no setter
isShowing → bool
no setterinherited
onDismissed ↔ VoidCallback?
getter/setter pair
onError ↔ void Function(String error)?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state ↔ AdState
getter/setter pairinherited
wasRewardEarned → bool
no setter

Methods

dispose() → void
override
load() → Future<bool>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetReward() → void
show({Future<void> onUserEarnedReward()?}) → Future<bool>
Shows ad and returns true if reward was earned. onUserEarnedReward is called when user earns reward DURING the ad.
override
toString() → String
A string representation of this object.
inherited

Operators

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