SSERequest class
- Inheritance
-
- Object
- BaseRequest
- SSERequest
Constructors
-
SSERequest({required String url, RequestContentType contentType = RequestContentType.textEventStreamValue, Map<
String, String> ? headers, dynamic body, RequestMethodType requestType = RequestMethodType.get, bool retry = false, required dynamic onData(SSEResponse), dynamic onError(String)?, Function? onDone})
Properties
- body → dynamic
-
no setter
- contentType → RequestContentType
-
no setterinherited
- getRequestUri → Uri
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> ? -
no setterinherited
- onData → dynamic Function(SSEResponse)
-
no setter
- onDone → Function?
-
no setter
- onError → dynamic Function(String)?
-
no setter
- requestType → RequestMethodType
-
no setter
- retry → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited