SocialSignInPlatform class abstract

PlatformInterface : Base class for platform interfaces Provides a static helper meth for ensuring that platform interfaces are implemented using extends instead of implements. The interface that implementations of SocialSignInDesktop and SocialSignInMobile for social sign in.

Inheritance
  • Object
  • PlatformInterface
  • SocialSignInPlatform
Implementers

Constructors

SocialSignInPlatform()
Constructs a SocialSignInPlatform.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

initialSite(SocialSignInSiteConfig config, SocialSignInPageInfo pageInfo) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
signIn(BuildContext context) Future<SocialSignInResultInterface>
Configure and direct login An SocialSignInFail which will be thrown if exceptions happen, a more specific reason will show in errorMessage
signInSite(SocialPlatform site, BuildContext context) Future<SocialSignInResultInterface>
Returns the credentials state for a given user by SocialSignInResultInterface Get the credentials and authorization of social login, it will convert an authorization code obtained via Social sign into a session in your system. Throw exception when errors happen.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance SocialSignInPlatform
The default instance of SocialSignInPlatform to use.
getter/setter pair
lastSite SocialSignInSite?
getter/setter pair

Static Methods

getSite(SocialPlatform site) SocialSignInSite?
Identify the platform being used.
setSite(SocialPlatform site, SocialSignInSite data) → void