Skip to content

Commit

Permalink
Added 'Ioc' type alias
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanbeusekom committed Mar 4, 2024
1 parent 5ab952b commit e1a40a2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/flutter_ioc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.1.0

* Adds the `Ioc` alias to allow developers to access the `IocContainer` class in a shorter way.

## 2.0.0

* **BREAKING CHANGE:** Removes the hard dependency on `get_it`, which means:
Expand Down
4 changes: 4 additions & 0 deletions packages/flutter_ioc/lib/src/ioc_container.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ enum ScopeChange {
removed,
}

/// A shorter alias for the [IocContainer] type. This allows developers to
/// use the shorter `Ioc.container` syntax instead of writing the full name.
typedef Ioc = IocContainer;

/// A standard interface providing inversion of control services to Dart or
/// Flutter applications.
abstract class IocContainer {
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter_ioc/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_ioc
description: A standard interface providing inversion of control services to Dart or Flutter applications.
version: 2.0.0
version: 2.1.0

publish_to: none

Expand Down

0 comments on commit e1a40a2

Please sign in to comment.