DummyComponent class
Dummy component useful for:
- Allowing sub-typing of components.
- Inheritance
-
- Object
- Component
- DummyComponent
Constructors
Properties
-
childContextKeys
→ Iterable<
String> -
The keys this component uses in its child context map (returned by
getChildContext).no setterinherited - context ↔ dynamic
-
The React context map of this component, passed down from its ancestors'
getChildContextvalue.getter/setter pairinherited -
contextKeys
→ Iterable<
String> -
The keys of context used by this component.
no setterinherited
- displayName → String?
-
Allows the ReactJS
displayNameproperty to be set for debugging purposes.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- jsThis → dynamic
-
The JavaScript
ReactComponentinstance of thisComponentreturned byrender.no setterinherited - nextContext ↔ Map?
-
Private reference to the value of
contextfor the upcoming render cycle.getter/setter pairinherited - nextProps ↔ Map?
-
Reference to the value of
propsfor the upcoming render cycle.getter/setter pairinherited - nextState → Map
-
Public getter for
_nextState.no setterinherited - prevContext ↔ Map?
-
Reference to the value of
contextfrom the previous render cycle, used internally for proxying the ReactJS lifecycle method.getter/setter pairinherited - prevState ↔ Map?
-
Reference to the value of
statefrom the previous render cycle, used internally for proxying the ReactJS lifecycle method andcomponentDidUpdate.getter/setter pairinherited - props ↔ Map
-
ReactJS
Componentprops.getter/setter pairinherited - ref ↔ RefMethod
-
DEPRECATED.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- setStateCallbacks → List
-
The List of callbacks to be called after the component has been updated from a call to
setState.no setterinherited - state ↔ Map
-
ReactJS
Componentstate.getter/setter pairinherited - transactionalSetStateCallbacks → List
-
The List of transactional
setStatecallbacks to be called before the component updates.no setterinherited
Methods
-
componentDidMount(
) → void -
ReactJS lifecycle method that is invoked once, only on the client (not on the server), immediately after the
initial rendering occurs.
inherited
-
componentDidUpdate(
Map prevProps, Map prevState) → void -
ReactJS lifecycle method that is invoked immediately after the
Component's updates are flushed to the DOM.inherited -
componentWillMount(
) → void -
ReactJS lifecycle method that is invoked once, both on the client and server, immediately before the initial
rendering occurs.
inherited
-
componentWillReceiveProps(
Map newProps) → void -
ReactJS lifecycle method that is invoked when a
Componentis receivingnewProps.inherited -
componentWillReceivePropsWithContext(
Map newProps, dynamic nextContext) → void -
UNSUPPORTED IN COMPONENT2
This API was never stable in any version of ReactJS, and was replaced with a new, incompatible context API in ReactJS 16.
This will be completely removed alongside the Component class.
inherited -
componentWillUnmount(
) → void -
ReactJS lifecycle method that is invoked immediately before a
Componentis unmounted from the DOM.inherited -
componentWillUpdate(
Map nextProps, Map nextState) → void -
ReactJS lifecycle method that is invoked immediately before rendering when
nextPropsornextStateare being received.inherited -
componentWillUpdateWithContext(
Map nextProps, Map nextState, Map? nextContext) → void -
DEPRECATED - DO NOT USE
This API was never stable in any version of ReactJS, and was replaced with a new, incompatible context API in ReactJS 16.
This will be completely removed alongside the Component class.
inherited -
getChildContext(
) → Map< String, dynamic> -
Returns a Map of context to be passed to descendant components.
inherited
-
getDefaultProps(
) → Map -
Invoked once and cached when
registerComponentis called. Values in the mapping will be set onpropsif that prop is not specified by the parent component.inherited -
getInitialState(
) → Map -
Invoked once before the
Componentis mounted. The return value will be used as the initial value ofstate.inherited -
initComponentInternal(
Map props, void _jsRedraw(), [RefMethod? ref, dynamic _jsThis, Map? context]) → dynamic -
inherited
-
initStateInternal(
) → dynamic -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
redraw(
[dynamic callback()?]) → void -
Force a call to
renderby callingsetState, which effectively "redraws" theComponent.inherited -
render(
) → dynamic -
Required.
override
-
replaceState(
Map? newState, [dynamic callback()?]) → void -
Set
_nextStateto providednewStatevalue and force a re-render.inherited -
setState(
covariant dynamic newState, [dynamic callback()?]) → void -
Triggers a rerender with new state obtained by shallow-merging
newStateinto the currentstate.inherited -
shouldComponentUpdate(
Map nextProps, Map nextState) → bool -
ReactJS lifecycle method that is invoked before rendering when
nextPropsornextStateare being received.inherited -
shouldComponentUpdateWithContext(
Map nextProps, Map nextState, Map? nextContext) → bool? -
DEPRECATED - DO NOT USE
This API was never stable in any version of ReactJS, and was replaced with a new, incompatible context API in ReactJS 16.
This will be completely removed alongside the Component class.
inherited -
toString(
) → String -
A string representation of this object.
inherited
-
transferComponentState(
) → void -
Transfers
Component_nextStatetostate, andstatetoprevState.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited