Pattern: Use of positional boolean parameter
Issue: -
Positional boolean parameters are a bad practice because they are ambiguous. Using named boolean parameters is much more readable because it inherently describes what the boolean value represents.
Example of incorrect code:
Task(true);
Task(false);
ListBox(false, true, true);
Button(false);
Example of correct code:
Task.oneShot();
Task.repeating();
ListBox(scroll: true, showScrollbars: true);
Button(ButtonState.enabled);