dart_datasource_models 0.0.9 copy "dart_datasource_models: ^0.0.9" to clipboard
dart_datasource_models: ^0.0.9 copied to clipboard

Define all models, annotations and classes used with dart_datasource_generator.

0
likes
130/ 160
pub points
158
downloads

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

OK
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: MIT.

failed
Provide documentation
10 / 20trigger folding of the section

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

89 out of 99 API elements (89.9 %) have documentation comments.

Some symbols that are missing documentation: dart_datasource_models.HttpException.copyWith, dart_datasource_models.HttpException.map, dart_datasource_models.HttpException.mapOrNull, dart_datasource_models.HttpException.maybeMap, dart_datasource_models.HttpException.maybeWhen.

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

failed
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

These platforms are not supported:

Package not compatible with platform Web

Because:

  • package:dart_datasource_models/dart_datasource_models.dart that imports:
  • package:dart_datasource_models/src/http/http_client.dart that imports:
  • package:easy_dart_logger/easy_dart_logger.dart that imports:
  • package:easy_dart_logger/src/no_easy_dart_logger.dart that imports:
  • package:easy_dart_logger/src/easy_dart_logger.dart that imports:
  • package:easy_dart_logger/src/dart_logger_configuration.dart that imports:
  • package:universal_io/io.dart that imports:
  • package:universal_io/src/_exports_in_browser.dart that imports:
  • package:universal_io/src/internet_address.dart that imports:
  • dart:io

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:dart_datasource_models/dart_datasource_models.dart that imports:
  • package:dart_datasource_models/src/http/http_client.dart that imports:
  • package:easy_dart_logger/easy_dart_logger.dart that imports:
  • package:easy_dart_logger/src/no_easy_dart_logger.dart that imports:
  • package:easy_dart_logger/src/easy_dart_logger.dart that imports:
  • package:easy_dart_logger/src/dart_logger_configuration.dart that imports:
  • package:universal_io/io.dart that imports:
  • package:universal_io/src/_exports_in_vm.dart that imports:
  • package:universal_io/src/new_universal_http_client.dart that imports:
  • package:universal_io/src/_helpers.dart that imports:
  • package:universal_io/src/_helpers_impl_elsewhere.dart that imports:
  • dart:io

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

failed
Pass static analysis
30 / 50trigger folding of the section

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

Found 11 issues. Showing the first 2:

WARNING: The parameter type of '==' operators should be non-nullable.

lib/src/models/http_exception.freezed.dart:192:17

    ╷
192 │   bool operator ==(dynamic other) {
    │                 ^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/models/http_exception.freezed.dart

WARNING: The parameter type of '==' operators should be non-nullable.

lib/src/models/http_exception.freezed.dart:378:17

    ╷
378 │   bool operator ==(dynamic other) {
    │                 ^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/models/http_exception.freezed.dart

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

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

Package Constraint Compatible Latest
easy_dart_logger ^1.0.3+1 1.0.4+1 1.0.4+1
freezed_annotation ^2.4.1 2.4.4 2.4.4
http ^1.0.0 1.2.2 1.2.2
http_parser ^4.0.2 4.1.1 4.1.1
Transitive dependencies
Package Constraint Compatible Latest
async - 2.12.0 2.12.0
collection - 1.19.1 1.19.1
json_annotation - 4.9.0 4.9.0
logging - 1.3.0 1.3.0
meta - 1.16.0 1.16.0
path - 1.9.1 1.9.1
source_span - 1.10.1 1.10.1
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
universal_io - 2.2.2 2.2.2
web - 1.1.0 1.1.0

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

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

20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.17, Dart 3.6.0.

Check the analysis log for details.

0
likes
130
points
158
downloads

Publisher

verified publisherdevac.fr

Weekly Downloads

Define all models, annotations and classes used with dart_datasource_generator.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

easy_dart_logger, freezed_annotation, http, http_parser

More

Packages that depend on dart_datasource_models