runApp function

void runApp(
  1. Widget app
)

Add an Error Handler right at the start.

Implementation

void runApp(m.Widget app) {
  // Instantiate the app's error handler.
  c.AppErrorHandler();

  // Here we set the URL strategy for our web app.
  // It is safe to call this function when running on mobile or desktop as well.
  setPathUrlStrategy();

  // Since Flutter 3.10, must now run in the 'root' zone
  m.runApp(app);
}