inheritable library
Classes
-
Aspect<
A, T> - AspectBatch
- Allow mutating multiple Inheritables at the same time while deferring their updates to dependents.
-
AspectBuilder<
A, T> - Convenience widget to get aspect as part of the build method
-
AspectMutation<
T> -
AspectOverride<
A, T> -
EquatableAspect<
T> - Provides default implementations for Object.== && Object.hashCode.
-
Inheritable<
T> -
Similar to InheritedModel provides a way to listen to certain aspects of
T. -
InheritableAspect<
T> -
An aspect of
T -
NoAspect<
T> - Convenience InheritableAspect implementation to achieve similar effect as that of InheritedWidget
Mixins
-
ClonableAspect<
T> -
Support partially replacing certain fields of
this -
DefaultAspectofContext<
A, T> - An InheritableAspect that allows providing a defaultValue in it's of method
-
DelegatingAspect<
T> - Delegates all methods of InheritableAspect to delegate.
-
DelegatingDependableAspect<
T> - Delegates didUpdateWidget to delegate only when predicate is satisfied.
-
DependableAspect<
T> -
Allow using
thisas a dependency, which means, dependent widgets will be have option to rebuild whenever this aspect changes. -
MutableInheritable<
T> -
Mutable version on Inheritable, allows dependents to make changes to the
valueheld by this -
MutableInheritableAspect<
T> - An Aspect that allows updating it's value. The resultant type is plain base type InheritableAspect. This is due to the fact that once an aspect is converted in to this type, it can no longer be used for it's original purpose or can it be?
-
PatchableAspect<
A, T> -
PostDelegatingAspect<
T> -
PreDelegatingAspect<
T> -
ShouldNotifyAspect<
A, T> - Provides a default implementation of DependableAspect.didUpdateWidget
-
TransformingAspect<
A, T> -
Adds static return type
Ato the of method.
Extensions
-
AspectChianingFn
on Aspect<
R, T> -
BoolAspectOf
on Aspect<
bool, T> -
ByPredicateAspect
on InheritableAspect<
T> -
ByPredicateTypedAspect
on TransformingAspect<
A, T> -
InheritableAspectChainable
on DependableAspect<
T> -
InheritableAspectIterable
on Iterable<
DependableAspect< T> > - InheritAspect on BuildContext
- InheritAspectForState on S
-
ListenableAspect
on InheritableAspect<
T> -
PatchMutableInheritable
on PatchableAspect<
A, T> -
ReplaceMutableInheritable
on InheritableAspect<
T> -
ValueAspect
on InheritableAspect<
T>
Typedefs
-
AspectPatch<
A, T> = T Function(T value, A next) -
AspectWidgetBuilder<
T> = Widget Function(BuildContext context, T aspect, Widget? child) -
DefaultInheritableAspectOfContext<
A> = A Function(BuildContext context) -
DidUpdateWidget<
T> = bool Function({required InheritableAspect< T> aspect, required Inheritable<T> next, required Inheritable<T> prev}) -
ExtractAspect<
A, T> = A Function(T it) -
Given
Textract certain aspectAfromitand return that. -
InheritableAspectSatisfied<
T> = bool Function(Inheritable< T> inheritable) -
InheritableMutation<
T> = T Function(Inheritable< T> inheritable) -
Given
inheritablereturn the next Inheritable.valueFor ofT -
PredicateAspect<
T> = bool Function({required T next, required T prev}) -
Given
Treturn whether you should be notified or not.