updateUser method

Future<void> updateUser(
  1. UserVO vo
)

Implementation

Future<void> updateUser(UserVO vo) async {
  if (vo.uid is String) {
    state = AsyncValue.loading();
    try {
      await this._userService.updateUser(vo);
    } catch (err) {
      /// Restore data
      state = AsyncValue.data(await _fetchUserData());
      throw err;
    }
  }
}