You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great package I was about to create a function to format the time like your relative function, but you have it!
However I can't seem to understand why I get this error when I try to set maxUnitOfTime: UnitOfTime.hour
This is the error:
The method '>' was called on null.
Receiver: null
Tried calling: >(0)
When the exception was thrown, this was the stack:
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:54:5)
#1 DateTimeFormat.relative.<anonymous closure> (package:date_time_format/src/date_time_format.dart:409:65)
#2 ListMixin.indexWhere (dart:collection/list.dart:496:15)
#3 DateTimeFormat.relative (package:date_time_format/src/date_time_format.dart:409:37)
#4 DateTimeFormatter.relative (package:date_time_format/src/date_time_extension_methods.dart:144:27)
Hi!
Great package I was about to create a function to format the time like your
relative
function, but you have it!However I can't seem to understand why I get this error when I try to set
maxUnitOfTime: UnitOfTime.hour
This is the error:
And this is the code:
If I remove the
maxUnitOfTime
works fine, but I'd rather not show the days if possible.Thanks!
The text was updated successfully, but these errors were encountered: