canEdit method

bool canEdit(
  1. User? user
)

Implementation

bool canEdit(User? user) => user != null && (isOwner(user) || isEditor(user));