Showing
3 changed files
with
8 additions
and
3 deletions
| @@ -5,11 +5,12 @@ import 'package:flutter/services.dart'; | @@ -5,11 +5,12 @@ import 'package:flutter/services.dart'; | ||
| 5 | /// To enable the wakelock, you can use [Wakelock.enable] and to disable it, | 5 | /// To enable the wakelock, you can use [Wakelock.enable] and to disable it, |
| 6 | /// you can call [Wakelock.disable]. | 6 | /// you can call [Wakelock.disable]. |
| 7 | /// You do not need to worry about making redundant calls, e.g. calling [Wakelock.enable] | 7 | /// You do not need to worry about making redundant calls, e.g. calling [Wakelock.enable] |
| 8 | -/// when the wakelock is already enabled as the plugin handles this for you. | 8 | +/// when the wakelock is already enabled as the plugin handles this for you, i.e. it checks |
| 9 | +/// the status to determine if the wakelock is already enabled or disabled. | ||
| 9 | /// If you want the flexibility to pass a [bool] to control whether the wakelock should be | 10 | /// If you want the flexibility to pass a [bool] to control whether the wakelock should be |
| 10 | /// enabled or disabled, you can use [Wakelock.toggle]. | 11 | /// enabled or disabled, you can use [Wakelock.toggle]. |
| 11 | /// | 12 | /// |
| 12 | -/// The [Wakelock.isEnabled] function allows you to retrieve the current wakelock | 13 | +/// The [Wakelock.isEnabled] property allows you to retrieve the current wakelock |
| 13 | /// status from Android or iOS. | 14 | /// status from Android or iOS. |
| 14 | class Wakelock { | 15 | class Wakelock { |
| 15 | static const MethodChannel _channel = MethodChannel('wakelock'); | 16 | static const MethodChannel _channel = MethodChannel('wakelock'); |
| 1 | name: wakelock | 1 | name: wakelock |
| 2 | description: This plugin allows you to keep Android and iOS devices awake, i.e. prevent the screen from sleeping by toggling the wakelock of the device on or off. | 2 | description: This plugin allows you to keep Android and iOS devices awake, i.e. prevent the screen from sleeping by toggling the wakelock of the device on or off. |
| 3 | -version: 0.1.2+7 | 3 | +version: 0.1.2+8 |
| 4 | author: creativecreatorormaybenot <19204050+creativecreatorormaybenot@users.noreply.github.com> | 4 | author: creativecreatorormaybenot <19204050+creativecreatorormaybenot@users.noreply.github.com> |
| 5 | homepage: https://github.com/creativecreatorormaybenot/wakelock | 5 | homepage: https://github.com/creativecreatorormaybenot/wakelock |
| 6 | 6 |
-
Please register or login to post a comment