FlutterReachFivePlatform class abstract
The interface that implementations of flutter_reach_five must implement.
Platform implementations should extend this class
rather than implement it as FlutterReachFive
.
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
FlutterReachFivePlatform methods
- Inheritance
-
- Object
- PlatformInterface
- FlutterReachFivePlatform
Constructors
- FlutterReachFivePlatform()
- Constructs a FlutterReachFivePlatform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- reachFiveHostApi ↔ ReachFiveHostApi
-
The default instance of ReachFiveHostApi to use
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getProfile(
{required ReachFiveKeyInterface reachFiveKey, required AuthTokenInterface authToken}) → Future< ProfileInterface> -
initialize(
ReachFiveKeyInterface reachFiveKey) → Future< ReachFiveConfigInterface> -
loginWithPassword(
{required ReachFiveKeyInterface reachFiveKey, required String password, String? email, String? phoneNumber, List< String> ? scope}) → Future<AuthTokenInterface> -
loginWithProvider(
{required ReachFiveKeyInterface reachFiveKey, required String provider, required String origin, List< String> ? scope}) → Future<AuthTokenInterface> -
logout(
{required ReachFiveKeyInterface reachFiveKey}) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseError(
Object error, StackTrace stackTrace) → Never - method used to parse the error on the differents platform
-
refreshAccessToken(
{required ReachFiveKeyInterface reachFiveKey, required AuthTokenInterface authToken}) → Future< AuthTokenInterface> -
requestPasswordReset(
{required ReachFiveKeyInterface reachFiveKey, String? email, String? phoneNumber, String? redirectUrl}) → Future< void> -
signup(
{required ReachFiveKeyInterface reachFiveKey, required ProfileSignupRequestInterface profile, String? redirectUrl, List< String> ? scope}) → Future<AuthTokenInterface> -
toString(
) → String -
A string representation of this object.
inherited
-
updatePasswordWithAccessToken(
{required ReachFiveKeyInterface reachFiveKey, required AuthTokenInterface authToken, required String oldPassword, required String newPassword}) → Future< void> -
updatePasswordWithEmail(
{required ReachFiveKeyInterface reachFiveKey, required String email, required String verificationCode, required String newPassword}) → Future< void> -
updatePasswordWithFreshAccessToken(
{required ReachFiveKeyInterface reachFiveKey, required AuthTokenInterface freshAuthToken, required String newPassword}) → Future< void> -
updatePasswordWithPhoneNumber(
{required ReachFiveKeyInterface reachFiveKey, required String phoneNumber, required String verificationCode, required String newPassword}) → Future< void> -
updateProfile(
{required ReachFiveKeyInterface reachFiveKey, required AuthTokenInterface authToken, required ProfileInterface profile}) → Future< ProfileInterface>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ FlutterReachFivePlatform
-
The default instance of FlutterReachFivePlatform to use.
getter/setter pair