setWriteAccess method
Set whether the given user id is allowed to write this object.
Implementation
void setWriteAccess({required String userId, bool allowed = true}) {
final bool readPermission = getReadAccess(userId: userId);
_setPermissionsIfNonEmpty(
userId: userId,
readPermission: readPermission,
writePermission: allowed);
}