Component2Bridge class abstract
A bridge from the Dart component instance to the JS component instance, encapsulating non-lifecycle-related functionality that is injected into component instances upon creation.
Each rendered Dart component has a bridge associated with it, which is accessible via forComponent. Most implementations will share a single bridge instance across many components.
These implementations translate Dart calls into JS calls, performing any interop necessary.
See Component2BridgeImpl for the basic implementation.
For internal/advanced use only.
- Implementers
Constructors
- Component2Bridge()
-
const
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
-
forceUpdate(
Component2 component, SetStateCallback? callback) → void -
jsifyPropTypes(
covariant Component2 component, covariant Map< String, Function> propTypes) → JsMap -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setState(
Component2 component, Map? newState, SetStateCallback? callback) → void -
setStateWithUpdater(
Component2 component, StateUpdaterCallback stateUpdater, SetStateCallback? callback) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
bridgeForComponent
→ Expando<
Component2Bridge> -
Associates a bridge with a component instance.
final
Static Methods
-
forComponent(
Component2 component) → Component2Bridge? -
Returns the bridge instance associated with the given
component
.