updateAccountInfo method
Future<void>
updateAccountInfo(
- Map<String, dynamic> updateUserData
)
override
Implementation
@override
Future<void> updateAccountInfo(Map<String, dynamic> updateUserData) async {
logger.finest('updateAccount($updateUserData)');
String userForeignKey = updateUserData['userForeignKey'] ?? '';
if (userForeignKey.isEmpty) {
throw HycopUtils.getHycopException(defaultMessage: 'userForeignKey is null !!!');
}
await HycopFactory.dataBase!
.setData('hycop_users', 'user=$userForeignKey', updateUserData)
.catchError((error, stackTrace) =>
throw HycopUtils.getHycopException(error: error, defaultMessage: 'setData Error !!!'));
}