GcpFhirClient class

FHIR Cleint that

Inheritance

Constructors

GcpFhirClient({FhirUri? redirectUri, required FhirUri fhirUri, String? clientId, List<String>? scopes = const ['openid', 'profile', 'email', 'https://www.googleapis.com/auth/cloud-platform'], String? launch})

Properties

authHeaders Map<String, String>?
authHeaders that can be stored while in use for a client not using an oauth2 flow but has security headers
getter/setter pairinherited
clientId String?
clientId for the application
getter/setter pairinherited
displayName String?
no setter
fhirUri ↔ FhirUri
Base fhirUri
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
launch String?
String for launch context
getter/setter pairinherited
redirectUri ↔ FhirUri?
redirectUri is required for most oAuth2 flows
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopes List<String>?
Scopes which aren't required for this base class but are used for any that involve authentication & permissions
getter/setter pairinherited
secret String?
Secret string, which isn't a good idea, because most of Flutter is web or mobile, so you really shouldn't be using a secret
getter/setter pairinherited
userEmail String?
no setter

Methods

close() → void
Not so important for the generic client
inherited
delete(Uri url, {Map<String, String>? headers, Object? body, Encoding? encoding}) Future<Response>
Sends an HTTP DELETE request with the given headers to the given URL. Adds security headers to the request before sending.
inherited
get(Uri url, {Map<String, String>? headers}) Future<Response>
Sends an HTTP GET request with the given headers to the given URL.
inherited
Sends an HTTP HEAD request with the given headers to the given URL.
inherited
isLoggedIn() Future<bool>
Checks if client isLoggedIn (same as isSignedIn), maintained because some clients use one and some prefer the other
override
isSignedIn() Future<bool>
Checks if client isSignedIn (same as isLoggedIn), maintained because some clients use one and some prefer the other
override
login() Future<void>
Method to login the client
override
logout() Future<void>
Logs the client out and deletes any security information that shouldn't be stored
override
newHeaders(Map<String, String>? headers) Future<Map<String, String>>
Adds security/authorizaton headers to all http requests made with this client
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch(Uri url, {Map<String, String>? headers, Object? body, Encoding? encoding}) Future<Response>
Sends an HTTP PATCH request with the given headers to the given URL. Adds security headers to the request before sending.
inherited
post(Uri url, {Map<String, String>? headers, Object? body, Encoding? encoding}) Future<Response>
Sends an HTTP POST request with the given headers to the given URL. Adds security headers to the request before sending.
inherited
put(Uri url, {Map<String, String>? headers, Object? body, Encoding? encoding}) Future<Response>
Sends an HTTP PUT request with the given headers to the given URL. Adds security headers to the request before sending.
inherited
read(Uri url, {Map<String, String>? headers}) Future<String>
Sends an HTTP GET request with the given headers to the given URL and returns a Future that completes to the body of the response as a String.
inherited
readBytes(Uri url, {Map<String, String>? headers}) Future<Uint8List>
Sends an HTTP GET request with the given headers to the given URL and returns a Future that completes to the body of the response as a list of bytes.
inherited
send(BaseRequest request) Future<StreamedResponse>
Sends an HTTP request and asynchronously returns the response.
inherited
toString() String
A string representation of this object.
inherited

Operators

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