updateAccountInfo method

  1. @override
Future<void> updateAccountInfo(
  1. Map<String, dynamic> updateUserData
)
override

Implementation

@override
Future<void> updateAccountInfo(Map<String, dynamic> updateUserData) async {
  logger.finest('updateAccount($updateUserData)');
  String userId = updateUserData["userId"] ?? "";
  if (userId.isEmpty) {
    throw const HycopException(message: 'no userId !!!');
  }
  await HycopFactory.dataBase!.setData('hycop_users', 'user=$userId', updateUserData).catchError(
      (error, stackTrace) =>
          throw HycopUtils.getHycopException(error: error, defaultMessage: 'setData Error !!!'));
}