operator unary- method
Negates all elements in the period.
Implementation
Period operator -() {
return Period(years: -years, months: -months, days: -days);
}
Negates all elements in the period.
Period operator -() {
return Period(years: -years, months: -months, days: -days);
}