OnAuthBuilder<T, P> class Null safety

Listen to an InjectedAuth and define the appropriate view for each case

Inheritance

Constructors

OnAuthBuilder({Key? key, required InjectedAuth<T, P> listenTo, required Widget onUnsigned(), required Widget onSigned(), Widget onInitialWaiting()?, bool useRouteNavigation = false, Widget onWaiting()?, SideEffects<T>? sideEffects, String? debugPrintWhenRebuild, @Deprecated('Use sideEffects instead') void dispose()?, @Deprecated('Use sideEffects instead') On<void>? onSetState})
const

Properties

debugPrintWhenRebuild String?
Debug print informative message when this widget is rebuilt
final
dispose → (void Function?()?)
Side effects to call when this widget is disposed.
@Deprecated('Use sideEffects instead'), final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
key Key?
Controls how one widget replaces another widget in the tree. [...]
final, inherited
listenTo InjectedAuth<T, P>
InjectedAuth to listen to.
final
onInitialWaiting → (Widget Function?()?)
Widget to display while waiting for the first signing when app starts
final
onSetState On<void>?
Side effects to call InjectedAuth emits notification.
@Deprecated('Use sideEffects instead'), final
onSigned Widget Function()
Widget to display if use is unsigned
final
onUnsigned Widget Function()
Widget to display if use is signed
final
onWaiting → (Widget Function?()?)
Widget to display while waiting for signing
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sideEffects SideEffects<T>?
Handle side effects
final
useRouteNavigation bool
Whether to use navigation transition between onSigned and onUnsigned widgets or simply use widget replacement [...]
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget. [...]
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree. [...]
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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}) 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. [...]
@nonVirtual, inherited