PreDelegatingAspect<T> mixin

Superclass constraints
Available extensions

Properties

debugLabel String?
Debug-mode label for this aspect
finalinherited
delegate InheritableAspect<T>
InheritableAspect which is responsible for handling all invocations, unless overridden.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
key Key?
Uniquely identifying local key for this aspect. This used by hashCode and ==. This allows InheritableAspect implementations to accept and hold closures in object instances and still have a unique object identity.
no setterinherited
listenable → _ListenableAspect<T>

Available on InheritableAspect<T>, provided by the ListenableAspect extension

Create a ValueListenable implementation of InheritableAspect that overrides the InheritableAspect.shouldNotify of this to notify it's listeners without causing a build for enclosing BuildContext
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → _ValueAspect<T>

Available on InheritableAspect<T>, provided by the ValueAspect extension

Create an InheritableAspect that overrides the InheritableAspect.of implementation of this to return value of T
no setter

Methods

by(InheritableAspectSatisfied<T> fn) InheritableAspect<T>

Available on InheritableAspect<T>, provided by the ByPredicateAspect extension

Add a pre-condition to choosing the correct Inheritable of T when are multiple Inheritable of T in the enclosing context.
clone({Key? key, InheritableAspect<T>? delegate}) DelegatingAspect<T>
Create a new instance of this aspect with the specified fields replaced.
inherited
cloneDelegate({Key? key, InheritableAspect<T>? replacement}) InheritableAspect<T>
Convenience method to create a new copy of delegate with key. This is useful in clone implementations where key is always delegated to delegate.
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
of(BuildContext context, {bool rebuild = true}) Object?
Convenience method for when an InheritableAspect is already known.
inherited
predicate(Inheritable<T> inheritable) bool
Predicate that is given priority over delegate.satisfiedBy
replace(T next) AspectMutation<T>

Available on InheritableAspect<T>, provided by the ReplaceMutableInheritable extension

Creates an AspectMutation that unconditionally requests T to be replaced by next.
satisfiedBy(Inheritable<T> inheritable) bool
Specify whether given inheritable satisfies this aspect.
override
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
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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