willLaunchBrowser method

  1. @override
LaunchOptions willLaunchBrowser(
  1. LaunchOptions options
)
override

Implementation

@override
LaunchOptions willLaunchBrowser(LaunchOptions options) {
  // Have viewport match window size, unless specified by user
  if (options.defaultViewport == LaunchOptions.viewportNotSpecified) {
    options = options.replace(defaultViewport: null);
  }

  return options;
}