v1.1.4 getPropertyDate
This commit is contained in:
@@ -133,6 +133,18 @@ class Customer {
|
||||
}
|
||||
}
|
||||
|
||||
String getPropertyDate(String propertyName) {
|
||||
if (properties[propertyName] == null) {
|
||||
return "";
|
||||
} else {
|
||||
if (properties[propertyName]!.dateAdd == null) {
|
||||
return "";
|
||||
} else {
|
||||
return DateFormat('yyyy-MM-dd').format(properties[propertyName]!.dateAdd!);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
setProperty(String propertyName, double value) {
|
||||
properties[propertyName]!.propertyValue = value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user