connect static method

Future<Onvif> connect({
  1. required dynamic host,
  2. required dynamic username,
  3. required dynamic password,
  4. LogOptions logOptions = const LogOptions(LogLevel.error, stackTraceLevel: LogLevel.off),
  5. LoggyPrinter printer = const PrettyPrinter(showColors: false),
  6. Dio? dio,
})

Implementation

static Future<Onvif> connect(
    {required host,
    required username,
    required password,
    LogOptions logOptions = const LogOptions(
      LogLevel.error,
      stackTraceLevel: LogLevel.off,
    ),
    LoggyPrinter printer = const PrettyPrinter(
      showColors: false,
    ),
    Dio? dio}) async {
  final onvif = Onvif(
      authInfo: AuthInfo(
        host: host,
        username: username,
        password: password,
      ),
      logOptions: logOptions,
      printer: printer,
      dio: dio);

  await onvif.initialize();

  return onvif;
}