init static method

Future<void> init({
  1. String? name,
  2. ConfigsDelegate? delegate,
  3. Set<String>? paths,
  4. Set<String>? symmetricPaths,
  5. bool connected = false,
  6. bool listening = true,
  7. bool showLogs = true,
  8. VoidCallback? onReady,
  9. String defaultPath = _kApplication,
  10. PlatformType platform = PlatformType.system,
  11. EnvironmentType environment = EnvironmentType.system,
})

Implementation

static Future<void> init({
  String? name,
  ConfigsDelegate? delegate,
  Set<String>? paths,
  Set<String>? symmetricPaths,
  bool connected = false,
  bool listening = true,
  bool showLogs = true,
  VoidCallback? onReady,
  String defaultPath = _kApplication,
  PlatformType platform = PlatformType.system,
  EnvironmentType environment = EnvironmentType.system,
}) async {
  i._defaultPath = defaultPath;
  i._environment = environment;
  i._platform = platform;
  await i.initialize(
    name: name ?? kDefaultConfigName,
    connected: connected,
    delegate: delegate,
    paths: {...kDefaultConfigPaths, if (paths != null) ...paths},
    symmetricPaths: {
      _kApplication,
      if (symmetricPaths != null) ...symmetricPaths,
    },
    listening: listening,
    showLogs: showLogs,
    onReady: onReady,
  );
}