fromMap method

Moment fromMap(
  1. Map<String, dynamic> map
)

Constructs a Moment from a map with string keys.

Implementation

Moment fromMap(Map<String, dynamic> map) {
  return Moment(
    second: map[second],
    minute: map[minute],
    hour: map[hour],
    date: map[date],
    month: map[month],
    year: map[year],
    formatStyle: const [
      the,
      space,
      Do,
      space,
      of,
      space,
      mmmm,
      space,
      yyyy,
      space,
      at,
      space,
      hh,
      colon,
      mm,
      colon,
      ss,
    ],
  );
}