BACK TO LIST

Dart rules

Codiga provides multiple sets of rules for 12+ languages. Below we provide a link and a description for all the rules supported by our platform. Note that not all the rules are being listed and described below.

AVOID_RETURNING_NULL_FOR_VOID

Safety
Error

Avoid returning null for void

Learn more

NULL_ARGUMENT_TO_NON_NULL_TYPE

Safety
Error

Function/method shouldn’t be called with a null argument for the non-nullable type argument.

PREFER_VOID_TO_NULL

Safety
Error

Don't use the Null type, unless you are positive that you don't want void.

We use cookies to improve your site experience, including analytics cookies to understand how you use our product and design better experiences. Please read our Cookie Policy.