mirror of
https://github.com/pese-git/cherrypick.git
synced 2026-01-23 21:13:35 +00:00
fix: fixed warnings
This commit is contained in:
@@ -28,3 +28,7 @@ include: package:lints/recommended.yaml
|
|||||||
|
|
||||||
# For additional information about configuring this file, see
|
# For additional information about configuring this file, see
|
||||||
# https://dart.dev/guides/language/analysis-options
|
# https://dart.dev/guides/language/analysis-options
|
||||||
|
|
||||||
|
analyzer:
|
||||||
|
errors:
|
||||||
|
deprecated_member_use: ignore
|
||||||
@@ -131,7 +131,6 @@ class BindSpec {
|
|||||||
// ? '.toInstanceAsync(($fnArgs) => $methodName($fnArgs))'
|
// ? '.toInstanceAsync(($fnArgs) => $methodName($fnArgs))'
|
||||||
// : '.toInstance(($fnArgs) => $methodName($fnArgs))';
|
// : '.toInstance(($fnArgs) => $methodName($fnArgs))';
|
||||||
case BindingType.provide:
|
case BindingType.provide:
|
||||||
default:
|
|
||||||
if (isAsyncProvide) {
|
if (isAsyncProvide) {
|
||||||
return multiLine
|
return multiLine
|
||||||
? '.toProvideAsyncWithParams(\n${' ' * (indent + 2)}($paramVar) => $methodName($fnArgs))'
|
? '.toProvideAsyncWithParams(\n${' ' * (indent + 2)}($paramVar) => $methodName($fnArgs))'
|
||||||
@@ -154,7 +153,6 @@ class BindSpec {
|
|||||||
? '.toInstanceAsync($methodName($argsStr))'
|
? '.toInstanceAsync($methodName($argsStr))'
|
||||||
: '.toInstance($methodName($argsStr))';
|
: '.toInstance($methodName($argsStr))';
|
||||||
case BindingType.provide:
|
case BindingType.provide:
|
||||||
default:
|
|
||||||
if (isAsyncProvide) {
|
if (isAsyncProvide) {
|
||||||
return multiLine
|
return multiLine
|
||||||
? '.toProvideAsync(\n${' ' * (indent + 2)}() => $methodName($argsStr))'
|
? '.toProvideAsync(\n${' ' * (indent + 2)}() => $methodName($argsStr))'
|
||||||
|
|||||||
Reference in New Issue
Block a user