toMapShortHand method

List<MapEntry<String, Object>> toMapShortHand()

Implementation

List<MapEntry<String, Object>> toMapShortHand() {
    // return List.generate(length, (index) => elementAt(index).toMapShortHand());
    return List.generate(length, (index) => MapEntry(
        elementAt(index).location + '(${index + 1})',
        elementAt(index).toMapShortHandA(),
    ));
}