update method

Future<void> update(
  1. User user
)

Updates the locally stored DtoUser with the provided user value.

Implementation

Future<void> update(User user) async {
  final DtoUser? dto = await _userLocal.read(user.id);
  if (dto != null) {
    put(dto..value = user, ignoreVersion: true);
  }
}