ParseACL constructor

ParseACL({
  1. ParseUser? owner,
})

Creates an ACL where only the provided user has access. owner The only user that can read or write objects governed by this ACL.

Implementation

ParseACL({ParseUser? owner}) {
  if (owner != null) {
    setReadAccess(userId: owner.objectId!, allowed: true);
    setWriteAccess(userId: owner.objectId!, allowed: true);
  }
}