style: remove unnecessary 'this.' qualifiers in binding.dart

- Remove unnecessary 'this.' qualifiers from deprecated methods
- Fix linter warnings (unnecessary_this)
This commit is contained in:
Sergey Penkovsky
2026-01-29 23:04:22 +03:00
parent 94b3ba284a
commit f9100eb9ba

View File

@@ -223,17 +223,17 @@ class Binding<T> {
@Deprecated('Use toInstance instead of toInstanceAsync')
Binding<T> toInstanceAsync(Instance<T> value) {
return this.toInstance(value);
return toInstance(value);
}
@Deprecated('Use toProvide instead of toProvideAsync')
Binding<T> toProvideAsync(Provider<T> value) {
return this.toProvide(value);
return toProvide(value);
}
@Deprecated('Use toProvideWithParams instead of toProvideAsyncWithParams')
Binding<T> toProvideAsyncWithParams(ProviderWithParams<T> value) {
return this.toProvideWithParams(value);
return toProvideWithParams(value);
}
/// Marks this binding as singleton (will only create and cache one instance per scope).