LwaPlatform class Null safety

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
Implementers

Constructors

LwaPlatform()

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scopes List<Scope>
read / write

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>[]}) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.
read / write