wifi_lock 0.0.4 wifi_lock: ^0.0.4 copied to clipboard
Flutter plugin for accessing android's WifiLock
wifi_lock #
Flutter plugin adding ability to access WifiLock
Example code #
pubspec.yaml:
...
dependencies:
wifi_lock: any
example dart code:
import 'package:wifi_lock/wifi_lock.dart';
void main() {
final WifiLock = new WifiLock(WifiLock.WIFI_MODE_FULL_HIGH_PERF);
wifiLock.acquire();
// ...
// we should release at the end of work with wifi
wifiLock.release();
}