mirror of
https://github.com/pese-git/cherrypick.git
synced 2026-01-23 21:13:35 +00:00
Add ignore comment for deprecated member warning in binding.dart
- Added // ignore: deprecated_member_use_from_same_package comment - This suppresses the warning about deprecated toProvideAsync method - The comment is needed to maintain code quality while keeping backward compatibility
This commit is contained in:
@@ -191,6 +191,7 @@ class Binding<T> {
|
|||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
/// This restriction only applies to [toInstance] bindings.
|
/// This restriction only applies to [toInstance] bindings.
|
||||||
|
// ignore: deprecated_member_use_from_same_package
|
||||||
/// With [toProvide]/[toProvideAsync] you may freely use `scope.resolve<T>()` in the builder or provider function.
|
/// With [toProvide]/[toProvideAsync] you may freely use `scope.resolve<T>()` in the builder or provider function.
|
||||||
Binding<T> toInstance(Instance<T> value) {
|
Binding<T> toInstance(Instance<T> value) {
|
||||||
_resolver = InstanceResolver<T>(value);
|
_resolver = InstanceResolver<T>(value);
|
||||||
|
|||||||
Reference in New Issue
Block a user