setSelfInfo method

  1. @override
Future setSelfInfo(
  1. String nickname,
  2. String avatar
)
override

Implementation

@override
Future<TUIResult> setSelfInfo(String nickname, String avatar) async {
  try {
    await methodChannel.invokeMethod(
        'setSelfInfo', {'nickname': nickname, 'avatar': avatar});
  } on PlatformException catch (error) {
    return TUIResult(code: error.code, message: error.message);
  } on Exception catch (error) {
    return TUIResult(code: "-1", message: error.toString());
  }
  return TUIResult(code: "", message: "login success");
}