isOwner method

bool isOwner(
  1. User? user
)

Implementation

bool isOwner(User? user) => user != null && userId == user.id;