user property

User get user

Gets the current User and if not yet created, creates one via userFactory. If there is no userFactory set, creates a default User.

Implementation

User get user => _user ??= userFactory(this);