TwitterAuth class

The entry point to use the methods in the Twitter Auth plugin

Inheritance

Constructors

TwitterAuth({@required String clientId, @required String clientSecret, @required String callbackUrl, bool clearCache = false, String userAgent})
Returns an instance of TwitterAuth.

Properties

authorization Authorization
@visibleForTesting, read / write
callbackUrl String
The client id of the Twitter App
final
clearCache bool
Whether the cache should be cleared after the login flow has completed If true, the Webview cache will be cleared The default is false.
final
clientId String
The client id of the Twitter App
final
clientSecret String
The client id of the Twitter App
final
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
userAgent String
The user agent to be used for the Webview
final

Methods

convertWebviewErrorToException(dynamic result) FlutterAuthException
@visibleForTesting, inherited
getTemporaryToken() Future<Credentials>
getTokenCredentials(String oauthToken, String oauthVerifier) Future<Credentials>
login(BuildContext context) Future<FlutterAuthResult>
Starts a login flow of a twitter account.
override
loginComplete(Uri authorizedResultUrl) Future<FlutterAuthResult>
@visibleForTesting, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
openLoginPage(BuildContext context, String url) Future<FlutterAuthResult>
inherited
openLoginPageWithWebview(BuildContext context, String url) Future<FlutterAuthResult>
@visibleForTesting, inherited
toString() String
A string representation of this object.
inherited

Operators

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