UserCheck constructor

UserCheck(
  1. User user,
  2. {String? name}
)

Create a new UserCheck that succeeds if the context was created by user.

You might also be interested in:

  • UserCheck.id, for creating this same check without an instance of User,
  • UserCheck.any, for checking that a context was created by a user in a set or users.

Implementation

UserCheck(User user, {String? name}) : this.id(user.id, name: name);