toString method

  1. @override
String toString()
override

A string representation of this object.

Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.

Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.

Implementation

@override
String toString() {
  return '[云开发唯一ID: $uuid] [用户使用的云开发环境: $env] [用户登录类型: $loginType] [微信应用appid: $appid] [当前用户在微信应用的openid: $openid] [用户昵称: $nickName] [用户性别: $gender] [用户所在国家: $country] [用户所在省份: $province] [用户所在城市: $city] [用户头像链接: $avatarUrl]';
}