connect method Null safety

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)}
)

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,
    )}) async {
  var onvif = Onvif(
      host: host,
      username: username,
      password: password,
      logOptions: logOptions,
      printer: printer);

  await onvif.initialize();

  return onvif;
}