-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathperson_detail.dart
More file actions
52 lines (36 loc) · 862 Bytes
/
person_detail.dart
File metadata and controls
52 lines (36 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import 'dart:math';
import 'dart:io';
class PersonDetail
{
String _name="";
String _contactNo="";
String _email="-";
String _dob="-";
String get name => _name;
PersonDetail(String user_name,String contact_No,{String user_email="-",user_dob="-"})
{
_name= user_name ;
_contactNo= contact_No;
_email=user_email;
_dob=user_dob;
}
void getPrintAllDetail()
{
print(" name : $_name\n contactNo : $_contactNo\n email : $_email\n dob : $_dob \n \n");
}
String get contactNo => _contactNo;
String get email => _email;
String get dob => _dob;
set dob(String value) {
_dob = value;
}
set email(String value) {
_email = value;
}
set contactNo(String value) {
_contactNo = value;
}
set name(String value) {
_name = value;
}
}