MethodChannelFlutterWechatLogin class
An implementation of FlutterWechatLoginPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- FlutterWechatLoginPlatform
- MethodChannelFlutterWechatLogin
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkToken(
{required String accessToken, required String openid}) → Future< String?> -
Check access_token validity
override
-
getAccessToken(
{required String code}) → Future< String?> -
Exchange code for access_token, refresh_token and authorized scope
override
-
getUserInfo(
{required String accessToken, required String openid}) → Future< String?> -
Get WeChat user info
override
-
init(
{required String appId, required String secret, String? universalLink}) → Future< void> -
init wechat plugin
override
-
isInstalled(
) → Future< bool> -
check wechat app is installed
override
-
login(
) → Future< String?> -
WeChat app authorized login
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refreshToken(
{required String refreshToken}) → Future< String?> -
Refresh or renew access_token
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited