diff --git a/cherrypick_generator/analysis_options.yaml b/cherrypick_generator/analysis_options.yaml index dee8927..b3846de 100644 --- a/cherrypick_generator/analysis_options.yaml +++ b/cherrypick_generator/analysis_options.yaml @@ -28,3 +28,7 @@ include: package:lints/recommended.yaml # For additional information about configuring this file, see # https://dart.dev/guides/language/analysis-options + +analyzer: + errors: + deprecated_member_use: ignore \ No newline at end of file diff --git a/cherrypick_generator/lib/src/bind_spec.dart b/cherrypick_generator/lib/src/bind_spec.dart index 4046bc2..bf7dcd9 100644 --- a/cherrypick_generator/lib/src/bind_spec.dart +++ b/cherrypick_generator/lib/src/bind_spec.dart @@ -131,7 +131,6 @@ class BindSpec { // ? '.toInstanceAsync(($fnArgs) => $methodName($fnArgs))' // : '.toInstance(($fnArgs) => $methodName($fnArgs))'; case BindingType.provide: - default: if (isAsyncProvide) { return multiLine ? '.toProvideAsyncWithParams(\n${' ' * (indent + 2)}($paramVar) => $methodName($fnArgs))' @@ -154,7 +153,6 @@ class BindSpec { ? '.toInstanceAsync($methodName($argsStr))' : '.toInstance($methodName($argsStr))'; case BindingType.provide: - default: if (isAsyncProvide) { return multiLine ? '.toProvideAsync(\n${' ' * (indent + 2)}() => $methodName($argsStr))'