getDatum method
Subclasses should implement this method to collect a Datum
.
Can return null
if no data is available.
Can return an ErrorDatum
if an error occurs.
Implementation
@override
Future<Datum> getDatum() async {
String? ssid = await NetworkInfo().getWifiName();
String? bssid = await NetworkInfo().getWifiBSSID();
String? ip = await NetworkInfo().getWifiIP();
return WifiDatum(ssid: ssid, bssid: bssid, ip: ip);
}