constant_datetime 1.0.0
constant_datetime: ^1.0.0 copied to clipboard

Flutter Android iOS Linux macOS web Windows

ConstantDateTime is a class that allows you to use DateTime as a constant.

constant_datetime #

ConstantDateTime is a class that allows you to use DateTime as a constant.

Getting Started #

If you need to use a constant datetime into your project, you can use ConstantDateTime class. Of course, it won't be possible to change value of your object after instanciation.

Here is a short example :

const DateTime value = ConstantDateTime('2021-01-01T00:00:00.000');
DateTime dtvalue = value.toDateTime();

toDateTime method from ConstantDateTime class returns a casted value of formatted string.

0
likes
100
pub points
20%
popularity

ConstantDateTime is a class that allows you to use DateTime as a constant.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

maxime.aubry.76@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on constant_datetime