make some widgets const (#9477)
This commit is contained in:
committed by
GitHub
parent
cbb49179c9
commit
03c54abd5f
@@ -192,7 +192,7 @@ new Switch(
|
||||
// Create a disabled switch.
|
||||
// Switches are disabled when onChanged isn't
|
||||
// specified or null.
|
||||
new Switch(value: false, onChanged: null);
|
||||
const Switch(value: false, onChanged: null);
|
||||
// END
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user