getScreenshot static method
Implementation
static Promise getScreenshot() {
return Promise._((JSFunction executor) {
getBase64Screenshot().then((value) {
executor.callAsFunction(null, value.toJS);
}).catchError((error) {
executor.callAsFunction(null, error.toJS);
});
}.toJS);
}