prevState property

  1. @override
  2. @Deprecated('Only supported in the deprecated Component, and not in Component2. See doc comment for more info.')
Map get prevState
inherited

Do not use.

Will be removed when Component is removed in a future major release.

Implementation

@override
@Deprecated('Only supported in the deprecated Component, and not in Component2. See doc comment for more info.')
Map get prevState => throw _unsupportedError('"Legacy" Context [prevContext]');
  1. @override
set prevState (Map? _)
inherited

Reference to the value of state from the previous render cycle, used internally for proxying the ReactJS lifecycle method and componentDidUpdate.

Not available after componentDidUpdate is called.

DO NOT set from anywhere outside react-dart lifecycle internals.

Implementation

@override
set prevState(_) => throw _unsupportedError('"Legacy" Context [prevContext]');