catalyst_builder 3.6.0 copy "catalyst_builder: ^3.6.0" to clipboard
catalyst_builder: ^3.6.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
160
pub points
66%
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, path

More

Packages that depend on catalyst_builder