keys property
Map defining compound index fields and their sort order.
Keys are field names, values are:
- 1 for ascending order
- -1 for descending order
Example: {'name': 1, 'age': -1}
creates an index on name (ascending)
and age (descending).
Implementation
Map<String, dynamic>? keys;