shouldComponentUpdate method

  1. @override
bool shouldComponentUpdate(
  1. Map nextProps,
  2. Map nextState
)
override

ReactJS lifecycle method that is invoked before rendering when nextProps and/or nextState are being received.

Use this as an opportunity to return false when you're certain that the transition to the new props and state will not require a component update.

See: reactjs.org/docs/react-component.html#shouldcomponentupdate

Implementation

@override
bool shouldComponentUpdate(Map nextProps, Map nextState) => true;