color 3.0.0
color: ^3.0.0 copied to clipboard
A simple Dart package exposing a Color class which can be used to create, convert, alter, and compare colors in a variety of colorspaces.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add colorWith Flutter:
$ flutter pub add colorThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
color: ^3.0.0Alternatively, 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:color/color.dart';