init static method
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,
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,
);
}