PrismUpdateGate class
Widget that listens to a PrismUpdateController and renders the right update experience over child.
- Forced updates always render forcedBuilder (or a default full screen).
- Soft updates follow behavior: a blocking page or a floating card.
- Everything else renders child untouched.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- PrismUpdateGate
Constructors
- PrismUpdateGate({required PrismUpdateController controller, required Widget child, GateBehavior behavior = GateBehavior.block, WidgetBuilder? forcedBuilder, WidgetBuilder? softUpdateBuilder, WidgetBuilder? checkingBuilder, WidgetBuilder? failureBuilder, Key? key})
-
Creates an update gate.
const
Properties
- behavior → GateBehavior
-
Behavior for soft (optional) updates.
final
- checkingBuilder → WidgetBuilder?
-
Builds UI shown while a check is in flight. Defaults to child.
final
- child → Widget
-
The app content.
final
- controller → PrismUpdateController
-
The controller to listen to.
final
- failureBuilder → WidgetBuilder?
-
Builds UI shown when the check fails. Defaults to child —
an update check failing should never break the app.
final
- forcedBuilder → WidgetBuilder?
-
Builds the blocking UI for forced updates.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- softUpdateBuilder → WidgetBuilder?
-
Builds the UI for soft updates, overriding behavior.
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.
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