Skip to content

Commit 7c62c0e

Browse files
committed
fix for vm entry point in android
1 parent 85ecd58 commit 7c62c0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/services_impls/host_scanner_service_flutter_impl.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ import 'package:universal_io/io.dart';
1111
import 'package:network_tools/src/services/impls/host_scanner_service_impl.dart';
1212

1313
/// Scans for all hosts in a subnet.
14+
@pragma('vm:entry-point')
1415
class HostScannerServiceFlutterImpl extends HostScannerServiceImpl {
1516
/// Scans for all hosts in a particular subnet (e.g., 192.168.1.0/24)
1617
/// Set maxHost to higher value if you are not getting results.
1718
/// It won't firstHostId again unless previous scan is completed due to heavy
1819
/// resource consumption.
1920
/// [resultsInAddressAscendingOrder] = false will return results faster but not in order
2021
@override
22+
@pragma('vm:entry-point')
2123
Stream<ActiveHost> getAllPingableDevices(
2224
String subnet, {
2325
int firstHostId = HostScannerService.defaultFirstHostId,

0 commit comments

Comments
 (0)