getWriteAccess method
Get whether the given user id is explicitly allowed to write this object. Even if this
returns false, the user may still be able to write it if getPublicWriteAccess returns
true or a role that the user belongs to has write access.
Implementation
bool getWriteAccess({required String userId}) {
return _permissionsById[userId]?.writePermission ?? false;
}