enum_flag 3.0.0 copy "enum_flag: ^3.0.0" to clipboard
enum_flag: ^3.0.0 copied to clipboard

Portable enum bit flags for Dart with typed FlagSet values, stable bit positions, and int extensions.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add enum_flag

With Flutter:

 $ flutter pub add enum_flag

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

dependencies:
  enum_flag: ^3.0.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:enum_flag/enum_flag.dart';
10
likes
160
points
1.54k
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Portable enum bit flags for Dart with typed FlagSet values, stable bit positions, and int extensions.

Repository (GitHub)
View/report issues

Topics

#enum #bitmask #flags

License

MIT (license)

Dependencies

meta

More

Packages that depend on enum_flag