stark 3.0.4 copy "stark: ^3.0.4" to clipboard
stark: ^3.0.4 copied to clipboard

outdated

Stark - a pragmatic lightweight dependency injection framework for Dart

[0.0.1] - First version #

[0.0.2] - Scoped Dependencies #

  • When you define a scope for an injection, you can dipose it by associating it with a Scope Widget or manually using Stark.disposeScope (name)
  • If your injected class implements Disposable interface the dispose method is called before discard instance.

final myModule ={
  single((i) => Api(),scoped: "MyScope"),
};

Scope(
  name: "MyScope",
  child: MyWidget() // widget to associate the scope
) // Use scope with a normal Widget.


//To dispose a scope manually uses:
Stark.diposeScope("MyScope");

[0.0.3] - Scope dispose fix #

1.0.0 - First stable relase #

2.0.0 - KoinComponent #

2.0.1 - Null Sefaty #

2.0.1 - Type error fixes #

2.0.3 - New Injectable State and refactor disposable interface #

2.0.4 - refactor disposable interface #

3.0.3 - Arch components #

3.0.4 - Arch components #

9
likes
0
pub points
69%
popularity

Publisher

verified publishersoftarch.dev

Stark - a pragmatic lightweight dependency injection framework for Dart

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on stark