From c4612b3e2c51531ff453c08121d3c2fd7adff6f1 Mon Sep 17 00:00:00 2001 From: git-elliot Date: Wed, 8 Mar 2023 20:02:02 +0530 Subject: [PATCH] Ignoring deprecated member use from same package --- network_tools/analysis_options.yaml | 1 + network_tools/lib/src/host_scanner.dart | 5 ++++- network_tools/lib/src/models/active_host.dart | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/network_tools/analysis_options.yaml b/network_tools/analysis_options.yaml index fa699ff..60be8d3 100644 --- a/network_tools/analysis_options.yaml +++ b/network_tools/analysis_options.yaml @@ -12,6 +12,7 @@ analyzer: missing_required_param: error missing_return: error must_be_immutable: error + deprecated_member_use_from_same_package: ignore exclude: - "**/*.g.dart" - "**/*.freezed.dart" diff --git a/network_tools/lib/src/host_scanner.dart b/network_tools/lib/src/host_scanner.dart index 1b24cb2..c6892df 100644 --- a/network_tools/lib/src/host_scanner.dart +++ b/network_tools/lib/src/host_scanner.dart @@ -83,7 +83,10 @@ class HostScanner { } static int _validateAndGetLastValidSubnet( - String subnet, int firstHostId, int lastHostId) { + String subnet, + int firstHostId, + int lastHostId, + ) { final int maxEnd = getMaxHost(subnet); if (firstHostId > lastHostId || firstHostId < 1 || diff --git a/network_tools/lib/src/models/active_host.dart b/network_tools/lib/src/models/active_host.dart index a02e8ce..e761054 100644 --- a/network_tools/lib/src/models/active_host.dart +++ b/network_tools/lib/src/models/active_host.dart @@ -9,6 +9,7 @@ import 'package:universal_io/io.dart'; class ActiveHost extends Comparable { ActiveHost({ required this.internetAddress, + // ignore: deprecated_consistency this.openPort = const [], PingData? pingData, MdnsInfo? mdnsInfoVar,