setTimeout method
setTimeOut sets timeout value in seconds. Used it rarely only when there some problem with offers after loading them. Returns a bool indicating that if setTimeout call is successful or not. In case of error it can also throw exceptions. ///
Implementation
@override
Future<bool> setTimeout(double seconds) async {
try {
final statusMessage = await methodChannel.invokeMethod(
"setTimeOut",
{"timeout": seconds},
);
return statusMessage;
} on PlatformException catch (error) {
log(error.message as String);
rethrow;
}
}