SimpleHookContext<R> class

Implemented types
Mixed in types
Available Extensions

Constructors

SimpleHookContext(R _build(), {bool init = true, bool shouldRebuild = true, Map<Type, Object?> provided = const {}})

Properties

debugDoingBuild bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
mounted bool
Whether this HookContext is still valid.
no setterinherited
needsBuild bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldRebuild bool
getter/setter pair
value → R
no setteroverride

Methods

addPostBuildCallback(void callback()) → void
Registers callback to be called after the current build.
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
debugMarkWillReassemble() → void
Marks the next build as a reassemble, allowing hooks to be added or removed.
inherited
dispose() → void
disposeHooks() → void
Disposes all hooks in this HookContext and marks is as unmounted.
inherited
getUnsafe(Type type) → dynamic
override
markNeedsBuild() → void
Requests that this HookContext should be rebuilt.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild() → R
setProvided<T>(T value) → void
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 brief description of this object, usually just the runtimeType and the hashCode.
inherited
triggerPostBuildCallbacks() → void
Triggers all callbacks registered in the previous build.
inherited
use<T>(Hook<T> hook) → T
Registers hook in this HookContext and returns its value.
inherited
waitUntil(bool predicate(R)) Future<void>
wrapBuild<T>(T build()) → T
Performs build in this HookContext.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited