UsersDraftsResource class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
create(Draft request, String userId, {String? $fields, UploadOptions uploadOptions = commons.UploadOptions.defaultOptions, Media? uploadMedia})
→ Future<Draft>
-
Creates a new draft with the
DRAFT
label.
-
delete(String userId, String id, {String? $fields})
→ Future<void>
-
Immediately and permanently deletes the specified draft.
-
get(String userId, String id, {String? format, String? $fields})
→ Future<Draft>
-
Gets the specified draft.
-
list(String userId, {bool? includeSpamTrash, int? maxResults, String? pageToken, String? q, String? $fields})
→ Future<ListDraftsResponse>
-
Lists the drafts in the user's mailbox.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
send(Draft request, String userId, {String? $fields, UploadOptions uploadOptions = commons.UploadOptions.defaultOptions, Media? uploadMedia})
→ Future<Message>
-
Sends the specified, existing draft to the recipients in the
To
, Cc
,
and Bcc
headers.
-
toString()
→ String
-
A string representation of this object.
inherited
-
update(Draft request, String userId, String id, {String? $fields, UploadOptions uploadOptions = commons.UploadOptions.defaultOptions, Media? uploadMedia})
→ Future<Draft>
-
Replaces a draft's content.