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:
Sergey Penkovsky
2025-09-08 16:50:45 +03:00
parent be7f3e0392
commit f1ad1c42b5

View File

@@ -191,6 +191,7 @@ class Binding<T> {
/// }
/// ```
/// 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.
Binding<T> toInstance(Instance<T> value) {
_resolver = InstanceResolver<T>(value);