passsy / dart-lint

An opinionated, community-driven set of lint rules for Dart and Flutter projects. Like pedantic but stricter
Apache License 2.0
277 stars 82 forks source link

How to turn off "The argument type 'dynamic' can't be assigned to the parameter type x"? #37

Closed Hassanmsaid closed 3 years ago

Hassanmsaid commented 3 years ago

I want to disable the lint: "The argument type 'dynamic' can't be assigned to the parameter type x" but I can't find it.

Update I used this and the problem is solved!

analyzer:
  strong-mode:
    implicit-casts: true
passsy commented 3 years ago

Definitly not recommending it, because this will lead to errors at runtime. See https://github.com/passsy/dart-lint/issues/15#issuecomment-771734437

Hassanmsaid commented 3 years ago

Definitly not recommending it, because this will lead to errors at runtime. See #15 (comment)

Thank you passsy, I understand you but I am using implicit cast hundreds of times in my project so I cannot check it right now.