attachRootComponent method

  1. @override
Future<void> attachRootComponent(
  1. Component app, {
  2. String attachTo = 'body',
  3. (Node, Node)? attachBetween,
})
inherited

Sets app as the new root of the component tree and performs an initial build

Implementation

@override
Future<void> attachRootComponent(Component app, {String attachTo = 'body', (Node, Node)? attachBetween}) {
  _loadRawState();
  attachTarget = attachTo;
  this.attachBetween = attachBetween;
  return super.attachRootComponent(app);
}