performRebuild method

  1. @protected
  2. @nonVirtual
void performRebuild()

Tells framework to rebuild the hook's scope.

There are couple of things to note while performing rebuilds:

  • A call to performRebuild will enqueue a render request which framework can decide to process at a later stage so hooks should not depend on the expected results of re-render request.

  • A call to performRebuild before or inside register is an error.

Implementation

@protected
@nonVirtual
void performRebuild() => _scope!.performRebuild();