getUserInfo method

  1. @override
Future<EchatUserInfo?> getUserInfo()
override

Implementation

@override
Future<EchatUserInfo?> getUserInfo() async {
  final result = await methodChannel.invokeMethod('getUserInfo');
  return result == null
      ? null
      : EchatUserInfo.toModel(data: Map.from(result));
}