modularity_contracts 0.0.1 copy "modularity_contracts: ^0.0.1" to clipboard
modularity_contracts: ^0.0.1 copied to clipboard

Zero-dependency interfaces for Modularity framework.

modularity_contracts #

Zero-dependency interfaces for the Modularity framework.

This package defines the core contracts (Module, Binder, Disposable) used by modularity_core and other packages. It contains no implementation logic and has no dependencies, making it lightweight and easy to implement.

Usage #

Extend Module to define a feature module:

import 'package:modularity_contracts/modularity_contracts.dart';

class MyModule extends Module {
  @override
  void binds(Binder binder) {
    // Register dependencies
    binder.singleton(() => MyService());
  }
}
1
likes
0
points
119
downloads

Publisher

unverified uploader

Weekly Downloads

Zero-dependency interfaces for Modularity framework.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on modularity_contracts