Skip to content

Commit

Permalink
Update Persons.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsatishsharma authored May 16, 2023
1 parent 2385d05 commit 0a9d712
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/model/Persons.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
///created the Modal Class of Person and their respective functions as shown below
class Person {

String? id;
String? name;
String? age;
String? address;
final String? id;
final String? name;
final String? age;
final String? address;

Person({ this.id, this.name, this.age, this.address});
const Person({ this.id, this.name, this.age, this.address});

//Alternate way to use model by const.
//const Person({ this.id, this.name, this.age, this.address, this.description});
Expand Down

0 comments on commit 0a9d712

Please sign in to comment.