loadOffers method
LoadOffers with specified attributes, attributes should be of Map type.
attribute key-value should be from specific values which you can get from
adspostx documentation website https://docs.adspostx.com/
.
Returns a bool indicating that if loadOffers call is successful or not.
In case of error it can also throw exceptions.
Implementation
@override
Future<bool> loadOffers(Map attributes) async {
try {
final statusMessage = await methodChannel.invokeMethod(
"loadOffers",
{"attributes": attributes},
);
return statusMessage;
} on PlatformException catch (error) {
log(error.message as String);
rethrow;
}
}