static_compress 0.2.0
static_compress: ^0.2.0 copied to clipboard
Compressor (gzip, webp) for static assets.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add static_compressThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
static_compress: ^0.2.0Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:static_compress/static_compress.dart';