Request class

Constructors

Request()

Properties

error String?
getter/setter pair
errorMessage String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
httpCode int?
getter/setter pair
mediaFileSize String?
getter/setter pair
mediaId String?
getter/setter pair
mediaMimeType String?
getter/setter pair
mediaSha256 String?
getter/setter pair
mediaUrl String?
getter/setter pair
messageId String?
getter/setter pair
phoneNumber String?
getter/setter pair
response String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
getter/setter pair

Methods

deleteMedia(String accessToken, String mediaId) Future<void>
get(String endpoint, Map<String, String> headers) Future<void>
getError() String?
Get the error message. Returns null if the request has not been made yet or if there was
getErrorMessage() String?
Get the error message. Returns null if the request has not been made yet or if there was
getHttpCode() int?
Get the HTTP status code. Returns null if the request has not been made yet.
getMedia(String accessToken, String mediaId) Future<void>
getMediaFileSize() String?
Get Uploaded media file size. Returns null if the request has not been made yet or if there was
getMediaId() String?
Get Uploaded media ID. Returns null if the request has not been made yet or if there was
getMediaMimeType() String?
Get Uploaded media MIME type. Returns null if the request has not been made yet or if there was
getMediaSha256() String?
Get Uploaded media SHA-256 hash. Returns null if the request has not been made yet or if there was
getMediaUrl() String?
Get Uploaded media URL. Returns null if the request has not been made yet or if there was
getMessageId() String?
Get the message ID. Returns null if the request has not been made yet or if there was
getPhoneNumber() String?
Get the phone number. Returns null if the request has not been made yet or if there was
getResponse() Map<String, dynamic>?
Get the response as a Map. Returns null if the request has not been made yet.
isSuccess() bool
Check if the request was successful. Returns true if the HTTP status code is between 200
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post(String endpoint, Map<String, String> headers, Map<String, dynamic>? body) Future<void>
postForm(String endpoint, Map<String, String> headers, Map<String, String> body) Future<void>
setVersion(String version) → void
Method to set custom version of the Facebook Graph API. version The version of the Facebook Graph API to use ex. v19.0
toString() String
A string representation of this object.
inherited
uploadMediaFile({required String phoneNumberId, required String accessToken, required File file, required String fileType}) Future<void>
uploadMediaFileByUrl({required String phoneNumberId, required String accessToken, required String fileUrl, required String fileType}) Future<void>

Operators

operator ==(Object other) bool
The equality operator.
inherited