readyState property

int readyState

Indicator of the current state of the request:

Value State Meaning
0 unsent open() has not yet been called
1 opened send() has not yet been called
2 headers received sent() has been called; response headers and status are available
3 loading responseText holds some data
4 done request is complete

Source

@DomName('XMLHttpRequest.readyState')
@DocsEditable()
int get readyState =>
    _blink.BlinkXMLHttpRequest.instance.readyState_Getter_(this);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/HttpRequest/readyState.html