butane_dart 0.1.0 copy "butane_dart: ^0.1.0" to clipboard
butane_dart: ^0.1.0 copied to clipboard

Pure-Dart reactive BLE porcelain and platform abstraction (no Flutter).

example/butane_dart_example.dart

// A headless example: the butane_dart porcelain runs from plain Dart with no
// Flutter engine and no plugin registrant. A real consumer assigns
// `ButanePlatformInterface.instance` to a backend — e.g. `ButaneDartBluez()`
// from `butane_dart_bluez` — before using the managers (the headless
// equivalent of a Flutter plugin's `registerWith`). This file exists so
// `dart compile exe` proves the porcelain is AOT-compilable pure Dart.
import 'package:butane_dart/butane_dart.dart';

void main() {
  final central = CentralManager();
  print('butane_dart porcelain ready (no Flutter): ${central.runtimeType}');
  central.dispose();
}
0
likes
160
points
28
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Pure-Dart reactive BLE porcelain and platform abstraction (no Flutter).

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

meta

More

Packages that depend on butane_dart