UseRefHook<T> class

A hook for creating stateless value.

Unlike value of a useState hook, a change in value of useRef won't cause scope re-render.

Properties

context → BuildContext?
Get context from associated scope.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ T
Current value.
getter/setter pair

Methods

addHookEventListeners(Map<HookEventType, HookEventCallback> listeners) → void
Register hook's scope event listeners.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
performRebuild() → void
Tells framework to rebuild the hook's scope.
inherited
register() → void
Register hook.
inherited
toString() String
A string representation of this object.
inherited

Operators

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