UserCreateView class
Admin creates a pending user already linked to the creator's firm
(UserPermissions.firmId from the access token). The invitee then signs up.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- UserCreateView
Constructors
-
UserCreateView({Key? key, bool showFloatingActionButton = true, void onUserCreated(BuildContext context, UserPublic createdUser)?, bool showLicenseReminder = true, Iterable<
License> ? firmLicenses, bool popOnSuccess = false, Future<void> onOpenBillingPortal(BuildContext context)?}) -
const
Properties
-
firmLicenses
→ Iterable<
License> ? -
When provided (e.g. from
readLicenses), shows seat usage for active licenses so admins see capacity at a glance.final - hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onOpenBillingPortal
→ Future<
void> Function(BuildContext context)? -
App→Web magic link (POS) or in-app billing route (web portal).
final
- onUserCreated → void Function(BuildContext context, UserPublic createdUser)?
-
Optional callback when user is successfully created
This allows the client app to take additional actions like:
final
- popOnSuccess → bool
-
When true, success pops this route with a CreatedUserNavResult so the
caller can open access/detail on the parent navigator (create is not
left under that next screen). Embeds such as GoRouter should keep this
false and use onUserCreated instead.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showFloatingActionButton → bool
-
Whether to show the floating action button for saving
Set to false when used inside a custom scaffold
final
- showLicenseReminder → bool
-
When true (default), shows a short notice that new users need an active
license seat. Set false only if your app shows this elsewhere.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< UserCreateView> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited