initialize method
Future<void>
initialize({
- required String name,
- ConfigsDelegate? delegate,
- Set<
String> ? paths, - Set<
String> ? symmetricPaths, - bool connected = false,
- bool lazy = false,
- bool logThrowEnabled = kDebugMode,
- bool listening = true,
- bool showLogs = true,
- VoidCallback? onReady,
inherited
Initialize remote with optional delegate, paths, and callbacks
Implementation
Future<void> initialize({
required String name,
T? delegate,
Set<String>? paths,
Set<String>? symmetricPaths,
bool connected = false,
bool lazy = false,
bool logThrowEnabled = kDebugMode,
bool listening = true,
bool showLogs = true,
VoidCallback? onReady,
}) async {
_name = name;
_paths = paths ?? {};
_symmetricPaths = symmetricPaths ?? {};
_showLogs = showLogs;
_delegate = delegate;
_connected = connected;
_lazy = lazy;
_logThrowEnabled = logThrowEnabled;
_listening = listening;
_callback = onReady;
await _loads();
if (_listening) await _subscribes();
}