enableWifiLock property
When enabled, a WifiLock is acquired when background execution is started. This allows the application to keep the Wi-Fi radio awake, even when the user has not used the device in a while (e.g. for background network communications).
Wifi lock permissions should be obtained first by using a permissions library.
Implementation
final bool enableWifiLock;