componentWillReceivePropsWithContext method

  1. @override
  2. @mustCallSuper
  3. @Deprecated('Only supported in the deprecated Component, and not in Component2. See doc comment for more info.')
void componentWillReceivePropsWithContext(
  1. Map newProps,
  2. dynamic nextContext
)
inherited

Do not use; this is part of the legacy context API.

See createContext for instructions on using the new context API.

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

Implementation

@override
@mustCallSuper
@Deprecated('Only supported in the deprecated Component, and not in Component2. See doc comment for more info.')
void componentWillReceivePropsWithContext(Map newProps, dynamic nextContext) =>
    throw _unsupportedLifecycleError('componentWillReceivePropsWithContext');