GoogleClient class
Core Google HTTP client shared across all capability modules
This class provides the foundational HTTP functionality that all Google capability implementations can use. It handles:
- Authentication via API key query parameter
- Request/response processing
- Error handling
- JSON array stream parsing (Google's streaming format)
- Provider-specific configurations
Constructors
- GoogleClient.new(GoogleConfig config)
Properties
- config → GoogleConfig
-
final
- dio ↔ Dio
-
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger → Logger
-
final
- 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
-
post(
String endpoint, {dynamic data, Map< String, dynamic> ? queryParameters, Options? options}) → Future<Response> - Make a POST request and return response
-
postJson(
String endpoint, Map< String, dynamic> data) → Future<Map< String, dynamic> > - Make a POST request and return JSON response
-
postStream(
String endpoint, {dynamic data, Map< String, dynamic> ? queryParameters, Options? options}) → Stream<Response> - Make a POST request and return stream response
-
postStreamRaw(
String endpoint, Map< String, dynamic> data) → Stream<String> - Make a POST request and return raw stream for JSON array streaming
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited