mirrored_repositories/Mobile-Programming-Lecture-Notes/temel_widget/lib
class Student {
  int id;
  String firstName;
  String lastName;
  int grade;
  String _status;

  Student.withId(int id, String firstName, String lastName, int grade) {
    this.id = id;
    this.firstName = firstName;
    this.lastName = lastName;
    this.grade = grade;
    //this.status = "Gecti";
  }

  Student(String firstName, String lastName, int grade) {
    this.firstName = firstName;
    this.lastName = lastName;
    this.grade = grade;
    //this.status = "Gecti";
  }

  Student.withoutInfo(){

  }

  String get getFirstName {
    return "OGR- " + this.firstName;
  }

  void set setFirstName(String value) {
    this.firstName = value;
  }

  String get getStatus {
    String message = '';
    if (this.grade >= 50) {
      message = "Gecti";
    } else if (this.grade >= 40) {
      message = "Butunlemeye Kaldi";
    } else {
      message = "Kaldi";
    }
    return message;
  }
}
