digit_data_model 1.0.3 copy "digit_data_model: ^1.0.3" to clipboard
digit_data_model: ^1.0.3 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
71%
popularity

We analyzed this package in the last hour, 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

3376 out of 12500 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 230 issues. Showing the first 2:

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

lib/data/data_repository.dart:371:15

    ╷
371 │       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:372:15

    ╷
372 │       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.0
dart_mappable ^4.2.0 4.2.2 4.2.2
dio ^5.1.2 5.7.0 5.7.0
drift ^2.0.0 2.20.2 2.20.2
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.0 1.9.0
path_provider ^2.0.11 2.1.4 2.1.4
recase ^4.1.0 4.1.0 4.1.0
sqlite3_flutter_libs ^0.5.10 0.5.24 0.5.24
uuid ^3.0.6 3.0.7 4.5.0
Transitive dependencies
Package Constraint Compatible Latest
async - 2.11.0 2.11.0
bloc - 8.1.4 8.1.4
boolean_selector - 2.1.1 2.1.1
characters - 1.3.0 1.3.0
convert - 3.1.1 3.1.1
crypto - 3.0.5 3.0.5
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.0
js - 0.6.7 0.7.1
json_annotation - 4.9.0 4.9.0
matcher - 0.12.16+1 0.12.16+1
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.10 2.2.10
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.5 3.1.5
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.6 2.4.6
stack_trace - 1.11.1 1.11.1
stream_channel - 2.1.2 2.1.2
string_scanner - 1.3.0 1.3.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.3.2 1.3.2
vector_math - 2.1.4 2.1.4
web - 1.0.0 1.0.0
xdg_directories - 1.0.4 1.0.4

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 946 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:368: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.12, Flutter 3.24.2, Dart 3.5.2.

Check the analysis log for details.

3
likes
100
pub points
71%
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