copyWith method

CaptivePortalStatus copyWith({
  1. bool? isCaptivePortal,
  2. String? redirectUrl,
})

Returns a modified status of the captive portal probe.

Implementation

CaptivePortalStatus copyWith({
  bool? isCaptivePortal,
  String? redirectUrl,
}) {
  return CaptivePortalStatus(
    isCaptivePortal: isCaptivePortal ?? this.isCaptivePortal,
    redirectUrl: redirectUrl ?? this.redirectUrl,
  );
}