When working with typescript:
const someMap = {a: "hi", b: 3}; // Typescript can determine the type of someMap as {a:string, b:number}.
const greet = someMap.a; // Typescript identifies greet as a string.
const someMapList: {a:string, b:number}[] = [{a: "hi", b: 3},{a: "bye", b:5}];
someMapList.map((m)=> {
// Typescript can infer the structure of m.
})
However, when using Dart, the only option I see is Map<K,V>
. How can I accomplish the same tasks in Dart?