avoid_return_types_on_setters

Group: style

Maturity: stable

Linter v0.1.11

Since info is static, may be stale
recommendedflutterpedantic

View all Lint Rules

Using the Linter

AVOID return types on setters.

As setters do not return a value, declaring the return type of one is redundant.

GOOD:

set speed(int ms);

BAD:

void set speed(int ms);