abort method
void
abort([
- dynamic reason
Abort the signal with a reason
.
This can be an Error, but
also a string
or any other Object you may want.
It is recommended to use an Error or a derived class of it to keep consistency.
Implementation
external void abort([final dynamic reason]);