k2_printer 0.0.11
k2_printer: ^0.0.11 copied to clipboard
Thermal Printer utility for both Sunmi K2 and K2 Mini.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add k2_printerWith Flutter:
$ flutter pub add k2_printerThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
k2_printer: ^0.0.11Alternatively, 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:k2_printer/k2_printer.dart';