levit 0.0.7 copy "levit: ^0.0.7" to clipboard
levit: ^0.0.7 copied to clipboard

Levit Dart Kit for Dart applications. Includes levit_reactive, levit_scope and levit_dart.

levit #

Pub Version Platforms License: MIT codecov

Purpose & Scope #

levit is the recommended single import for pure Dart applications.

This kit re-exports:

  • levit_dart utility layer.
  • levit_dart_core composition APIs.
  • levit_scope and levit_reactive foundations (through transitive exports).

Use this package when you want the complete Dart-side Levit stack without Flutter bindings.

Conceptual Overview #

levit is intentionally thin. It does not define new runtime semantics; it packages the Dart stack behind one import for simpler adoption.

Getting Started #

dependencies:
  levit: ^latest
import 'package:levit/levit.dart';

void main() {
  final scope = Levit.createScope('app');

  scope.run(() {
    final count = Levit.put(() => 0.lx, tag: 'count');
    final worker = LxWorker(count, (value) => print('count=$value'));

    count(1);

    worker.close();
  });

  scope.dispose();
}

Design Principles #

  • Zero-surprise aggregation: one import, unchanged underlying APIs.
  • Clear boundaries: pure Dart only, no Flutter dependency.
  • Production default for shared domain and backend layers.
1
likes
160
points
182
downloads

Publisher

unverified uploader

Weekly Downloads

Levit Dart Kit for Dart applications. Includes levit_reactive, levit_scope and levit_dart.

Repository (GitHub)
View/report issues
Contributing

Topics

#state-management #dependency-injection #framework

Documentation

API reference

License

MIT (license)

Dependencies

levit_dart

More

Packages that depend on levit