You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Q.20: Create a map named "car" with the following key-value pairs: "brand" as "Toyota", "color" as "Red", "isSedan" as true. Write Dart code to check if the car is a sedan and red in color. Print "Match" if both conditions are true, otherwise print "No match".
void main() {
Map<String, dynamic> car = {
'brand': "Toyota",
'color': 'Red',
'isSedan': true
};
if (car['isSedan'] == true && car['color'] == 'Red') {