initial method
Future<void>
initial({
- IosSettings? ios,
- AndroidSettings? android,
- WindowsSettings? widows,
- WebSettings? web,
- ConnectMode? mode,
override
Implementation
@override
Future<void> initial({
IosSettings? ios,
AndroidSettings? android,
WindowsSettings? widows,
WebSettings? web,
ConnectMode? mode,
}) async {
if (mode != null && mode is! ConnectModeWebSocket) {
throw PlatformException(
code: 'not support mode',
message: 'not support mode ${mode.runtimeType.toString()}',
);
}
_replace = web?.replace;
_reload = web?.reload;
if (mode != null) {
mode as ConnectModeWebSocket;
_host = mode.host;
_port = mode.port;
_path = mode.part;
_wss = mode.wss;
}
}