time 1.4.0
time: ^1.4.0
time: ^1.5.0-nullsafety.0

Dart native js
Flutter Android iOS web

Type-safe DateTime and Duration calculations, powered by extensions.

126
likes
90 / 110
pub points
96 %
popularity

We analyzed this package on Nov 30, 2020, and awarded it 90 pub points (of a possible 110):

Follow Dart file conventions
20 / 20

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
10 / 20

10/10 points: Package has an example

  • Found example at: example/time_example.dart

0/10 points: Failed to run dartdoc

  • Running dartdoc failed with the following output:
  warning: time has no library level documentation comments, from time: (file:///tmp/pub-dartlang-dartdocTGMUFL/pkg/lib/time.dart:1:9)
  warning: Comment reference resolution inside extension methods is not yet implemented, from time.DateTimeTimeExtension.to: (file:///tmp/pub-dartlang-dartdocTGMUFL/pkg/lib/src/extensions.dart:66:22)
  warning: unresolved doc reference [to], from time.DateTimeTimeExtension.to: (file:///tmp/pub-dartlang-dartdocTGMUFL/pkg/lib/src/extensions.dart:66:22)
  error: failed to write file at: time/DurationTimeExtension/daysPerWeek-constant.html, for symbol time.DurationTimeExtension.daysPerWeek: (file:///tmp/pub-dartlang-dartdocTGMUFL/pkg/lib/src/extensions.dart:114:20)
            Dartdoc generates a path and filename to write to for each symbol.
            time.DurationTimeExtension.daysPerWeek conflicts with another symbol in the generated path, and
            therefore can not be written out.  Changing the name, library name, or
            class name (if appropriate) of one of the conflicting items can resolve
            the conflict.   Alternatively, use the @nodoc tag in one symbol's
            documentation comments to hide it.
  error: failed to write file at: time/DurationTimeExtension/nanosecondsPerMicrosecond-constant.html, for symbol time.DurationTimeExtension.nanosecondsPerMicrosecond: (file:///tmp/pub-dartlang-dartdocTGMUFL/pkg/lib/src/extensions.dart:115:20)
found 3 warnings and 2 errors
Unhandled exception:
dartdoc encountered 2 errors while processing.
#0      Dartdoc.generateDocs (package:dartdoc/dartdoc.dart:231:9)
<asynchronous suspension>
#1      main (file:///project/pkg/pub_dartdoc/bin/pub_dartdoc.dart:32:33)
<asynchronous suspension>
#2      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#3      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
Support multiple platforms
20 / 20

20/20 points: Supports 2 of 2 possible platforms (native, js)

Pass static analysis
20 / 30

20/30 points: code has no errors, warnings, lints, or formatting issues

lib/src/extensions.dart is not formatted according to dartfmt

To format your files run: dartfmt -w .

Support up-to-date dependencies
20 / 20

10/10 points: All of the package dependencies are supported in the latest version

No dependencies.

To reproduce run pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

10/10 points: Package supports latest stable Dart and Flutter SDKs

126
likes
90
pub points
96%
popularity

Type-safe DateTime and Duration calculations, powered by extensions.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

jeremiahogbomo@gmail.com

License

MIT (LICENSE)

More

Packages that depend on time