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.21: Given a map representing a user with keys "name", "isAdmin", and "isActive", write Dart code to check if the user is an active admin. If the user is both an admin and active, print "Active admin", otherwise print "Not an active admin".
void main() {
Map<String, dynamic> user = {
'name': "Hammad",
'isAdmin': true,
'isActive': true,
};
if (user['isAdmin'] == true && user['isActive'] == true) {