schultek/dart_mappable

possibility to change DateMapper encoding type

Closed this issue · 4 comments

Is there a way to change the encoding type of DateMapper besides creating a custom Mapper from DateMapper?

https://pub.dev/documentation/dart_mappable/latest/topics/Models-topic.html

At te bottom there is a sectin about DateTime encoding

"To change the mode, set DateTimeMapper.encodingMode to any value of the DateTimeEncoding enum."
where exactly? on app load?

yes anytime before using the package is fine

ok, it works, ty