map-keys-ordering
added in: 1.7.0
style
Ensures consistent alphabetical order of String
keys inside a map.
Example
❌ Bad:
final map = {
'value': 'world',
'some': 1, // LINT
'hello': true, // LINT
};
✅ Good:
final map = {
'hello': true,
'some': 1,
'value': 'world',
};