EarthoOne class

Constructors

EarthoOne({required String clientId, required String clientSecret, List<String>? enabledProviders})

Properties

clientId String
final
clientSecret String
final
enabledProviders List<String>?
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

connectWithPopup(String accessId) Future<EarthoCredentials?>
connectWithRedirect(String accessId) Future<EarthoCredentials?>
Starts the access flow
disconnect() Future
Disconnect this user from eartho and clear session
getIdToken() Future<String?>
After user connected, this function returns the id token of the user
getPlatformVersion() Future<String?>
Get the sdk version
getUser() Future<EarthoUser?>
After user connected, this function returns user object
init() Future
Init the sdk
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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