UserInfoExtension extension

Convenience methods for the UserInfo class.

on

Methods

toPublic({bool includeUserId = true, bool includeFullName = true}) UserInfoPublic
Returns an object with only the information that can safely be shared publicly for the user.