ReactBinding class abstract
The renderer-facing hook and capability contract.
Methods that are not implemented by a renderer fail explicitly instead of silently producing client/SSR divergence. This keeps the portable API available while browser, server, and test bindings are implemented in separate phases.
Constructors
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
-
useActionState<
T, A> (Action< T, A> action, T initialState, String? permalink) → (T, void Function(A)) - Returns action state and its dispatcher.
-
useCallback<
T extends Function> (T callback, List< Object?> ? deps) → T - Returns a memoized callback.
-
useContext<
T> (ReactContext< T> context) → T - Reads a context value.
-
useDebugValue(
Object? value, String format(Object? value)?) → void - Publishes a value to React developer tooling.
-
useDeferredValue<
T> (T value, Object? initialValue) → T - Returns a deferred value.
-
useEffect(
EffectCallback effect, List< Object?> ? deps) → void - Registers a passive effect and its optional cleanup.
-
useId(
) → String - Returns a server/client-stable identifier.
-
useImperativeHandle<
T> (ReactRef< T> ? ref, T create(), List<Object?> ? deps) → void - Sets the value exposed through a ref.
-
useLayoutEffect(
EffectCallback effect, List< Object?> ? deps) → void - Registers a layout effect.
-
useMemo<
T> (T factory(), List< Object?> ? deps) → T - Returns a memoized value.
-
useOptimistic<
T, A> (T state, T update(T state, A action)) → (T, void Function(A)) - Returns optimistic state and its dispatcher.
-
useReducer<
T, A> (T reducer(T state, A action), T initialState, T initializer(T initialState)?) → (T, void Function(A)) - Returns reducer state and a dispatch function.
-
useRef<
T> (T? initialValue) → ReactRef< T> - Returns a stable mutable ref.
-
useState<
T> (T initial) → (T, StateSetter< T> ) - Reads state and returns a direct/functional state setter.
-
useStateLazy<
T> (T initializer()) → (T, StateSetter< T> ) -
Reads state initialized by
initializeronly on the first render. -
useStateWithUpdater<
T> (T initial) → (T, StateSetter< T> ) - Reads state with a setter that also accepts functional updates.
-
useSyncExternalStore<
T> (StoreSubscribe subscribe, Snapshot< T> getSnapshot, Snapshot<T> ? getServerSnapshot) → T - Subscribes to an external store.
-
useTransition(
) → (bool, void Function(TransitionWork )) - Returns transition state and a transition starter.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited