catalyst_builder 3.5.0 copy "catalyst_builder: ^3.5.0" to clipboard
catalyst_builder: ^3.5.0 copied to clipboard

A lightweight and easy to use dependency injection provider builder for dart.

example/lib/example.dart

import 'package:catalyst_builder/catalyst_builder.dart';

import './src/manually_wired_service.dart';

export './public_api.dart';
export './src/manually_wired_service.dart';
export 'example.catalyst_builder.g.dart';

/**
 * Export the catalyst_exports that the watch command can recompile the
 * ServiceProvider when the dependencies changes.
 */
export 'relative_deps_exports.dart';

@Preload()
@GenerateServiceProvider()
@ServiceMap(services: {
  ManuallyWiredServiceImplementation: Service(
    exposeAs: ManuallyWiredService,
  ),
})
void main() {}
8
likes
130
pub points
59%
popularity

Publisher

verified publishermintware.de

A lightweight and easy to use dependency injection provider builder for dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

analyzer, build, build_runner_core, code_builder, dart_style, glob, lints, path

More

Packages that depend on catalyst_builder