InheritedWidget class abstract
Base class for widgets that efficiently propagate information down the tree.
Constructors
- InheritedWidget({required Widget child, Key? key})
-
Initializes inherited configuration for dependents below
child.const
Properties
- child → Widget
-
The widget below this widget in the tree.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how this widget replaces another of the same type.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateShouldNotify(
covariant InheritedWidget oldWidget) → bool - Whether the framework should notify widgets that inherit from this widget.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited