InheritedProperty class

The InheritedProperty feature provides functionality to make it possible for child components to access a "property" declared in a parent component.

By "property" is meant a value (object) whose changes do not need to be tracked.

Constructors

InheritedProperty()

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Operators

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

Static Methods

add<T>(String key, T init()) → T
Adds an inherited "property". Used in the parent component.
find<T>(String key) → T?
Allows to find an inherited "property".
get<T>(String key) → T
Allows to get an inherited "property". Used in child components.