torch_controller 0.3.0-nullsafety.1 torch_controller: ^0.3.0-nullsafety.1 copied to clipboard
A controller to manage torch/flash device resource. We give you access to native resources to toggle flashlight, to natively check torch status and more!
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add torch_controller
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
torch_controller: ^0.3.0-nullsafety.1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:torch_controller/torch_controller.dart';