LevelLoadFailed class

Shown when asset threw rather than loaded.

This used to be a black screen for ever in two of the three games: the load caught its own throw and printed it, which is a line in a console nobody playing can see. Every one of these is a content mistake — the failure a person editing a level makes — so the message names the file.

onStartOver is the way out, and is optional. Where a game has one, the failing level is usually the saved one and throwing the run away is the only thing that rescues the player.

Inheritance

Constructors

LevelLoadFailed({Key? key, required String asset, required Object error, VoidCallback? onStartOver, String startOverLabel = 'Throw the run away and start again'})
const

Properties

asset → String
final
error → Object
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onStartOver → VoidCallback?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startOverLabel → String
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