I am not sure the best constructor to add in this use case. Still trying to figure out flutter so I got stuck here while trying to build an app.
I have tried the different constructors like "jiffy.datetime" "jiffy.parsejiffy" etc but they seem not to have solved the issue but keeps returning the same error.enter image description here
Please help
Based from you code, you seem to use Jiffy incorrectly. As of version
6.0.0
Jiffy does not allow to create its instance soley by calling the constructorYou have to use factory methods to create one
So below I have re-written your code to solve the issue you are having
Hope this helps on how to use Jiffy, if you have additional questions, please feel free to ask