PiholeApiParams constructor

PiholeApiParams({
  1. required String baseUrl,
  2. required String apiPath,
  3. required String adminHome,
  4. required bool apiTokenRequired,
  5. required String apiToken,
  6. required bool allowSelfSignedCertificates,
})

Implementation

factory PiholeApiParams({
  /// The URL of the host.
  required String baseUrl,

  /// The local API path of the host.
  required String apiPath,

  /// The local admin path of the host.
  required String adminHome,

  /// Whether API tokens are enabled.
  required bool apiTokenRequired,

  /// The API token shown by the admin dashboard.
  required String apiToken,

  /// Allow unsigned certificates.
  required bool allowSelfSignedCertificates,
}) = _PiholeApiParams;