configure static method

void configure({
  1. String? name,
  2. String? root,
})

Overrides the defaults — the entrypoint basename for the name, Directory.current for the project root. Must run before the first event: after activation the handle file is already published, and a silently ignored override would be worse than this error.

Implementation

static void configure({String? name, String? root}) {
  if (_started) {
    throw StateError(
      'FlutterwareServer.configure must run before the first event.',
    );
  }
  _configuredName = name ?? _configuredName;
  _configuredRoot = root ?? _configuredRoot;
}