WechatResponse class

微信返回的用户信息

Constructors

WechatResponse({required String openid, required String nickname, required int sex, required String province, required String city, required String country, required String headimgurl, required String unionid})

Properties

city String
普通用户个人资料填写的城市
final
country String
国家,如中国为 CN
final
hashCode int
The hash code for this object.
no setterinherited
headimgurl String
用户头像,最后一个数值代表正方形头像大小(有 0、46、64、96、132 数值可选,0 代表 640*640 正方形头像),用户没有头像时该项为空
final
nickname String
普通用户昵称
final
openid String
普通用户的标识,对当前开发者帐号唯一
final
province String
普通用户个人资料填写的省份
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sex int
普通用户性别,1 为男性,2 为女性
final
unionid String
用户统一标识。针对一个微信开放平台帐号下的应用,同一用户的 unionid 是唯一的。
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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