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

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

levit #

Pub Version Platforms License: MIT codecov

The core kit for building application logic with the Levit ecosystem.

levit bundles and re-exports the foundational packages for reactive state management, dependency injection, and utility mixins. It serves as the primary gateway for building non-UI business logic.


Purpose & Scope #

levit provides a unified entry point for the "logic" side of Levit. It is responsible for:

  • Re-exporting foundational reactivity primitives from levit_reactive.
  • Re-exporting hierarchical dependency injection from levit_scope.
  • Providing domain-level abstractions from levit_dart.

Conceptual Overview #

Core Abstractions #

  • [Lx]: Static entry point for reactivity and batching.
  • [Ls]: Static entry point for ambient dependency resolution.
  • [LevitScope]: Hierarchical container for dependency management.

Getting Started #

Installation #

Add levit to your pubspec.yaml:

dependencies:
  levit: latest

Usage #

import 'package:levit/levit.dart';

final count = 0.lx;
final auth = Ls.find<AuthService>();

Design Principles #

All-in-One Gateway #

Designed to simplify imports by providing a single, authoritative package that exports everything needed to build a fully reactive domain layer.

Framework Agnostic #

While it pairs perfectly with levit_flutter, the levit kit itself has zero dependencies on Flutter and runs in any Dart environment.

1
likes
160
points
241
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