LwaPlatform class abstract

The interface that implementations of flutter_lwa must implement.

Platform implementations should extend this class rather than implement it as flutter_lwa does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added LwaPlatform methods.

Inheritance
  • Object
  • PlatformInterface
  • LwaPlatform
Implementers

Constructors

LwaPlatform()

Properties

grantType GrantType?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
proofKeyParameters ProofKeyParameters?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopes List<Scope>
getter/setter pair

Methods

fetchUserProfile() Future<LwaUser>
getCurrentAuth() LwaAuthorizeResult
getOnLwaAuthorizeChangedStream() Stream<LwaAuthorizeResult>
Subscribe to this stream to be notified when the current user changes.
init({List<Scope> scopes = const <Scope>[], GrantType? grantType, ProofKeyParameters? proofKeyParameters}) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
signIn() Future<LwaAuthorizeResult>
signInSilently({bool suppressErrors = true}) Future<LwaAuthorizeResult>
signOut() Future<LwaAuthorizeResult>
Marks current user as being in the signed out state.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance LwaPlatform
The default instance of LwaPlatform to use.
getter/setter pair