TwitterResponse<D, M> class
The class represents the response from Twitter API v2.
- Implementers
Constructors
-
TwitterResponse({required Map<
String, String> headers, required HttpStatus status, required TwitterRequest request, required RateLimit rateLimit, required D data, Includes? includes, M? meta}) -
Returns the new instance of TwitterResponse.
const
Properties
- data → D
-
The data field
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasIncludes → bool
-
Returns true if this response has includes, otherwise false.
no setter
- hasMeta → bool
-
Returns true if this response has meta, otherwise false.
no setter
- hasNotIncludes → bool
-
Returns true if this response has not includes, otherwise false.
no setter
- hasNotMeta → bool
-
Returns true if this response has not meta, otherwise false.
no setter
-
headers
→ Map<
String, String> -
The http headers
final
- includes → Includes?
-
The includes field
final
- meta → M?
-
The meta field
final
- rateLimit → RateLimit
-
The rate limit
final
- request → TwitterRequest
-
The request that generated this response
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → HttpStatus
-
The http status
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Returns the JSON representation of this response.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited