class Student {
String name;
String group;
Student(this.name, this.group);
String operator[](prop) {
if(prop == "name")
return name;
else
return group;
}
}
void main() {
Student student = new Student('Ivan Sidorov', '111');
var prop = "name";
print(student[prop]);
}