renamed models folder to database

- fix: startup issue
This commit is contained in:
zlshames
2024-08-15 09:49:31 -04:00
parent bee39456e3
commit ec81edfd45
195 changed files with 279 additions and 278 deletions

View File

@ -0,0 +1,22 @@
import 'dart:async';
/// Shim for NetworkInfo to allow for web compile
class HostScanner {
/// Obtains the IPv4 address of the connected wifi network
static Stream<ActiveHost> scanDevicesForSinglePort(
String subnet,
int port, {
int firstHostId = 1,
int lastHostId = 254,
Duration timeout = const Duration(milliseconds: 2000),
dynamic progressCallback,
bool resultsInAddressAscendingOrder = true,
}) {
final StreamController<ActiveHost> activeHostsController = StreamController<ActiveHost>();
return activeHostsController.stream;
}
}
class ActiveHost {
String address = "";
}