wrapRunApp method

PluginInstaller wrapRunApp(
  1. String wrapperName
)

Enqueues an InjectIntoMainDart with placement MainDartPlacement.wrapRunApp.

The wrapperName string is the constructor name the dispatcher wraps around runApp's argument (e.g. 'SentryWidget').

@param wrapperName Widget constructor name. @return This installer (chainable).

Implementation

PluginInstaller wrapRunApp(String wrapperName) {
  _ops.add(
    InjectIntoMainDart(
      placement: MainDartPlacement.wrapRunApp,
      code: wrapperName,
    ),
  );
  return this;
}