MethodChannelEarthoOne class
An implementation of EarthoOnePlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- EarthoOnePlatform
- MethodChannelEarthoOne
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
connectWithPopup(
String accessId) → Future< EarthoCredentials?> -
inherited
-
connectWithRedirect(
String accessId) → Future< EarthoCredentials?> -
Starts the access flow
override
-
disconnect(
) → Future -
Disconnect this user from eartho and clear session
override
-
getIdToken(
) → Future< String> -
After user connected, this function returns the id token of the user
override
-
getPlatformVersion(
) → Future< String?> -
override
-
getUser(
) → Future< EarthoUser?> -
After user connected, this function returns user object
override
-
initEartho(
{required String clientId, required String clientSecret, List< String> ? enabledProviders}) → Future -
Init the sdk
override
-
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