requestUpdate method

void requestUpdate(
  1. Component component
)

Pedido de actualización desde un Component

Implementation

void requestUpdate(Component component) {
  if (!_mounted) {
    throw StateError('ComponentRuntime is not mounted');
  }

  RenderContext.run(this, () {
    final rawTree = rootComponent!.render();
    final nextTree = resolveNode(rawTree);
    renderer.update(_currentTree!, nextTree);
    _currentTree = nextTree;
  });
}