toMap method

Map<String, int> toMap()

转Map

Implementation

Map<String, int> toMap() {
  return {
    'years': $y,
    'months': $M,
    'date': $D,
    'hours': $h,
    'minutes': $m,
    'seconds': $s,
    'milliseconds': $ms
  };
}