error method
Future<void>
error(
- String? message, {
- bool takeScreenshot = true,
- dynamic coordinates,
- dynamic data,
})
Implementation
Future<void> error(String? message, {bool takeScreenshot = true, dynamic coordinates, dynamic data}) async {
dynamic response = await logEvent('ERROR', message, coordinates, data);
// ignore: avoid_print
print('====================Changing status for current task: ' 'ERROR' ' ====================');
setStatus('ERROR');
if (takeScreenshot == true) {
await _attachScreenshot(this, response);
}
}