network method

void network(
  1. ScenarioNetwork mode
)

Declares what this project's scenarios reach by default. See PluginManifest.network.

Refused twice, like clock and for the same reason.

Implementation

void network(ScenarioNetwork mode) {
  if (_network != null) {
    throw StateError(
      'fw.network was called twice. Declare one network mode per '
      'project.',
    );
  }
  _network = mode;
}