ServiceClient class

A low-level mechanism to communicate with Google APIs.

Constructors

ServiceClient({required Client client})
Creates a ServiceClient using client for transport.

Properties

client → Client
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
Closes the client and cleans up any resources associated with it.
delete(Uri url) Future<Map<String, dynamic>>
deleteStreaming(Uri url) Stream<Map<String, dynamic>>
get(Uri url) Future<Map<String, dynamic>>
getStreaming(Uri url) Stream<Map<String, dynamic>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch(Uri url, {JsonEncodable? body}) Future<Map<String, dynamic>>
patchStreaming(Uri url, {JsonEncodable? body}) Stream<Map<String, dynamic>>
post(Uri url, {JsonEncodable? body}) Future<Map<String, dynamic>>
postStreaming(Uri url, {JsonEncodable? body}) Stream<Map<String, dynamic>>
put(Uri url, {JsonEncodable? body}) Future<Map<String, dynamic>>
putStreaming(Uri url, {JsonEncodable? body}) Stream<Map<String, dynamic>>
toString() String
A string representation of this object.
inherited

Operators

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