preconditions 0.7.5 copy "preconditions: ^0.7.5" to clipboard
preconditions: ^0.7.5 copied to clipboard

Pure Dart library for management of preconditions in Flutter apps. Has the user granted all permissions? Is the phone online? Is there enough free disk space?

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add preconditions
copied to clipboard

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  preconditions: ^0.7.5
copied to clipboard

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:preconditions/preconditions.dart';
copied to clipboard
5
likes
150
points
92
downloads

Publisher

verified publisherfnx.io

Weekly Downloads

2024.09.19 - 2025.04.03

Pure Dart library for management of preconditions in Flutter apps. Has the user granted all permissions? Is the phone online? Is there enough free disk space?

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, logging

More

Packages that depend on preconditions