digit_data_model 1.0.4 copy "digit_data_model: ^1.0.4" to clipboard
digit_data_model: ^1.0.4 copied to clipboard

The digit_data_model package is a data modeling library. It defines various classes, enums, and functions.

3
likes
100/ 160
pub points
68%
popularity

We analyzed this package 33 hours ago, and awarded it 100 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

3424 out of 12687 API elements (27.0 %) have documentation comments.

Some symbols that are missing documentation: address, address, address, address.Address, address.Address.Address.

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 does not support platform `Web`.

Because:

  • package:digit_data_model/blocs/boundary/boundary.dart that imports:
  • package:digit_data_model/utils/typedefs.dart that imports:
  • package:digit_data_model/models/entities/service_definition.dart that imports:
  • package:digit_data_model/models/entities/attributes.dart that imports:
  • package:digit_data_model/data/local_store/sql_store/sql_store.dart that imports:
  • package:path_provider/path_provider.dart that declares support for platforms: Android, iOS, Windows, Linux, macOS.

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:digit_data_model/blocs/boundary/boundary.dart that imports:
  • package:digit_data_model/utils/typedefs.dart that imports:
  • package:digit_data_model/models/entities/service_definition.dart that imports:
  • package:digit_data_model/models/entities/attributes.dart that imports:
  • package:digit_data_model/data/local_store/sql_store/sql_store.dart that imports:
  • package:digit_data_model/data/local_store/sql_store/tables/pgr_service.dart that imports:
  • package:digit_data_model/models/pgr_complaints/pgr_complaints.dart that imports:
  • package:digit_data_model/data_model.dart that imports:
  • package:digit_data_model/utils/utils.dart that imports:
  • package:drift/native.dart that imports:
  • package:drift/src/sqlite3/database_tracker.dart that imports:
  • package:sqlite3/sqlite3.dart that imports:
  • package:sqlite3/src/ffi/api.dart that imports:
  • package:sqlite3/src/ffi/implementation.dart that imports:
  • package:sqlite3/src/ffi/sqlite3.g.dart that imports:
  • dart:ffi

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 225 issues. Showing the first 2:

WARNING: The value of the local variable 'errorResponse' isn't used.

lib/data/data_repository.dart:380:15

    ╷
380 │       String? errorResponse;
    │               ^^^^^^^^^^^^^
    ╵

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

WARNING: The value of the local variable 'requestBody' isn't used.

lib/data/data_repository.dart:381:15

    ╷
381 │       String? requestBody;
    │               ^^^^^^^^^^^
    ╵

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

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

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

Package Constraint Compatible Latest
collection ^1.16.0 1.18.0 1.19.1
dart_mappable ^4.2.0 4.3.0 4.3.0
dio ^5.1.2 5.7.0 5.7.0
drift ^2.0.0 2.21.0 2.21.0
drift_db_viewer ^2.0.0 2.1.0 2.1.0
flutter flutter 0.0.0 0.0.0
flutter_bloc ^8.1.1 8.1.6 8.1.6
freezed_annotation ^2.1.0 2.4.4 2.4.4
isar ^3.0.5 3.1.0+1 3.1.0+1
isar_flutter_libs ^3.0.5 3.1.0+1 3.1.0+1
mocktail ^1.0.2 1.0.4 1.0.4
path ^1.8.2 1.9.1 1.9.1
path_provider ^2.0.11 2.1.5 2.1.5
recase ^4.1.0 4.1.0 4.1.0
sqlite3_flutter_libs ^0.5.10 0.5.26 0.5.26
uuid ^3.0.6 3.0.7 4.5.1
Transitive dependencies
Package Constraint Compatible Latest
async - 2.12.0 2.12.0
bloc - 8.1.4 8.1.4
boolean_selector - 2.1.2 2.1.2
characters - 1.3.0 1.3.1
convert - 3.1.2 3.1.2
crypto - 3.0.6 3.0.6
db_viewer - 1.1.0 1.1.0
dio_web_adapter - 2.0.0 2.0.0
ffi - 2.1.3 2.1.3
http_parser - 4.0.2 4.1.1
js - 0.6.7 0.7.1
json_annotation - 4.9.0 4.9.0
matcher - 0.12.17 0.12.17
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.16.0
nested - 1.0.0 1.0.0
path_provider_android - 2.2.12 2.2.12
path_provider_foundation - 2.4.0 2.4.0
path_provider_linux - 2.2.1 2.2.1
path_provider_platform_interface - 2.1.2 2.1.2
path_provider_windows - 2.3.0 2.3.0
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
provider - 6.1.2 6.1.2
sky_engine - 0.0.99 0.0.99
source_span - 1.10.0 1.10.0
sqlite3 - 2.4.7 2.4.7
stack_trace - 1.12.0 1.12.0
stream_channel - 2.1.2 2.1.2
string_scanner - 1.4.0 1.4.0
term_glyph - 1.2.1 1.2.1
test_api - 0.7.3 0.7.3
type_plus - 2.1.1 2.1.1
typed_data - 1.4.0 1.4.0
vector_math - 2.1.4 2.1.4
web - 1.1.0 1.1.0
xdg_directories - 1.1.0 1.1.0

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

The constraint `^3.0.6` on uuid does not support the stable version `4.0.0`.

Try running dart pub upgrade --major-versions uuid to update the constraint.

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

0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 947 errors:

  • NON_TYPE_IN_CATCH_CLAUSE - lib/blocs/user/user.dart:55:10 - The name 'DioException' isn't a type and can't be used in an on-catch clause.
  • NON_TYPE_IN_CATCH_CLAUSE - lib/data/data_repository.dart:377:10 - The name 'DioException' isn't a type and can't be used in an on-catch clause.
  • CONST_EVAL_THROWS_EXCEPTION - lib/data/local_store/no_sql/schema/oplog.g.dart:16:21 - Evaluation of this constant expression throws an exception.

Run flutter pub downgrade and then flutter analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.22.15, Flutter 3.24.4, Dart 3.5.4.

Check the analysis log for details.

3
likes
100
pub points
68%
popularity

Publisher

unverified uploader

The digit_data_model package is a data modeling library. It defines various classes, enums, and functions.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

collection, dart_mappable, dio, drift, drift_db_viewer, flutter, flutter_bloc, freezed_annotation, isar, isar_flutter_libs, mocktail, path, path_provider, recase, sqlite3_flutter_libs, uuid

More

Packages that depend on digit_data_model