setUserInfo method

  1. @override
Future<bool> setUserInfo(
  1. UserInfo userInfo
)
override

Implementation

@override
Future<bool> setUserInfo(UserInfo userInfo) async {
  // TODO: implement event
  try {
    Map<String, dynamic> data = userInfo.toMap();
    final result =
        await methodChannel.invokeMethod<bool>('setUserInfo', {'data': data});
    return result ?? false;
  } catch (e) {
    // //print(e);
  }
  return false;
}