mirror of
https://github.com/pese-git/cherrypick.git
synced 2026-03-24 20:12:04 +00:00
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:
@@ -223,17 +223,17 @@ class Binding<T> {
|
|||||||
|
|
||||||
@Deprecated('Use toInstance instead of toInstanceAsync')
|
@Deprecated('Use toInstance instead of toInstanceAsync')
|
||||||
Binding<T> toInstanceAsync(Instance<T> value) {
|
Binding<T> toInstanceAsync(Instance<T> value) {
|
||||||
return this.toInstance(value);
|
return toInstance(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated('Use toProvide instead of toProvideAsync')
|
@Deprecated('Use toProvide instead of toProvideAsync')
|
||||||
Binding<T> toProvideAsync(Provider<T> value) {
|
Binding<T> toProvideAsync(Provider<T> value) {
|
||||||
return this.toProvide(value);
|
return toProvide(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated('Use toProvideWithParams instead of toProvideAsyncWithParams')
|
@Deprecated('Use toProvideWithParams instead of toProvideAsyncWithParams')
|
||||||
Binding<T> toProvideAsyncWithParams(ProviderWithParams<T> value) {
|
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).
|
/// Marks this binding as singleton (will only create and cache one instance per scope).
|
||||||
|
|||||||
Reference in New Issue
Block a user