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();
}

Libraries

wifi_lock