attachRootComponent method

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

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

Implementation

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