dart_common_extensions 0.0.3 copy "dart_common_extensions: ^0.0.3" to clipboard
dart_common_extensions: ^0.0.3 copied to clipboard

This package provides a collection of convenient extensions for Dart `DateTime`, `List`, `Map`, and `String` classes, aimed at simplifying common operations and enhancing code readability.

130/ 160
pub points
39
downloads

We analyzed this package 5 days ago, and awarded it 130 pub points (of a possible 160):

Failed report section
Follow Dart file conventions
20 / 30trigger folding of the section

Failed check 0/10 points: Provide a valid pubspec.yaml

The package description is too long.

Search engines display only the first part of the description. Try to keep the value of the description field in your package's pubspec.yaml file between 60 and 180 characters.

Failed to verify repository URL.

Repository has no matching pubspec.yaml with name: dart_common_extensions.

Please provide a valid repository URL in pubspec.yaml, such that:

  • repository can be cloned,
  • a clone of the repository contains a pubspec.yaml, which:,
    • contains name: dart_common_extensions,
    • contains a version property, and,
    • does not contain a publish_to property.

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Failed report section
Provide documentation
10 / 20trigger folding of the section

Passed check 10/10 points: 20% or more of the public API has dartdoc comments

180 out of 183 API elements (98.4 %) have documentation comments.

Some symbols that are missing documentation: dart.common.extensions.NumToDateTimeStringExtensions, dart.common.extensions.StringConversionExtensions.toDateTime, dart.common.extensions.StringToDateTimeStringExtensions.

Failed check 0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

  • ✓ Web

WASM-ready: This package is compatible with runtime wasm. See https://dart.dev/web/wasm for details.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

Found 4 issues. Showing the first 2:

INFO: Use 'isEmpty' instead of 'length' to test whether the collection is empty.

lib/extensions/string_extensions.dart:14:23

   ╷
14 │   bool get isEmpty => this.length == 0;
   │                       ^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/extensions/string_extensions.dart

INFO: Angle brackets will be interpreted as HTML.

lib/extensions/string_extensions.dart:126:46

    ╷
126 │   /// Attempts to decode the string as a List<dynamic> from JSON. Returns an empty list if decoding fails.
    │                                              ^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/extensions/string_extensions.dart

Passed report section
Support up-to-date dependencies
40 / 40trigger folding of the section

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

Package Constraint Compatible Latest Notes
decimal ^3.1.0 3.2.4 3.2.4
intl ^0.20.0 0.20.2 0.20.2
Transitive dependencies
Package Constraint Compatible Latest Notes
clock - 1.1.2 1.1.2
meta - 1.18.1 1.18.1
path - 1.9.1 1.9.1
rational - 2.2.3 2.2.3

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

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

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.23.10, Dart 3.11.1.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
3
likes
130
points
39
downloads

Publisher

verified publisherceeyang.com

Weekly Downloads

This package provides a collection of convenient extensions for Dart `DateTime`, `List`, `Map`, and `String` classes, aimed at simplifying common operations and enhancing code readability.

Documentation

API reference

License

MIT (license)

Dependencies

decimal, intl

More

Packages that depend on dart_common_extensions