getDate method
Implementation
String getDate() {
final fMonth = month < 10 ? "0$month" : "$month";
final fDay = day < 10 ? "0$day" : "$day";
return "$year-$fMonth-$fDay";
}
String getDate() {
final fMonth = month < 10 ? "0$month" : "$month";
final fDay = day < 10 ? "0$day" : "$day";
return "$year-$fMonth-$fDay";
}