throwIfAborted method
void
throwIfAborted()
Throw the object that is in reason as if it was an Error. In JS you are allowed to throw what ever you want and it doesn't have to be an Error type.
This may also contain an string
if the error was caused by the rest of
the js environment and it didn't happen inside of the dart environment.
Implementation
external void throwIfAborted();