bdaya_repository_pattern 3.0.0 copy "bdaya_repository_pattern: ^3.0.0" to clipboard
bdaya_repository_pattern: ^3.0.0 copied to clipboard

A simple implmentation of the repository pattern used at our company.

7
likes
140/ 160
pub points
0%
popularity

We analyzed this package 31 hours ago, and awarded it 140 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: BSD-3-Clause.

OK
Provide documentation
20 / 20trigger folding of the section

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

212 out of 239 API elements (88.7 %) have documentation comments.

Some symbols that are missing documentation: bdaya_repository_pattern.BoxCollection, bdaya_repository_pattern.BoxCollection.BoxCollection, bdaya_repository_pattern.BoxCollection.boxNames, bdaya_repository_pattern.BoxCollection.close, bdaya_repository_pattern.BoxCollection.deleteFromDisk.

10/10 points: Package has an example

OK
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android
  • ✓ iOS
  • ✓ Windows
  • ✓ Linux
  • ✓ macOS
  • ✓ Web
partial
Pass static analysis
40 / 50trigger folding of the section

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

Found 4 issues. Showing the first 2:

INFO: Uses 'await' on an instance of 'TVal?', which is not a subtype of 'Future'.

lib/src/active_repo.dart:118:24

    ╷
118 │         final oldVal = await getValueById(key);
    │                        ^^^^^
    ╵

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

INFO: The null check operator shouldn't be used on a variable whose type is a potentially nullable type parameter.

lib/src/active_repo.dart:119:35

    ╷
119 │         mutateExisting(key, oldVal!, val);
    │                                   ^
    ╵

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

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

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

Package Constraint Compatible Latest
hive ^2.0.2 2.2.3 2.2.3
rxdart ^0.26.0 0.26.0 0.28.0
Transitive dependencies
Package Constraint Compatible Latest
collection - 1.19.0 1.19.0
crypto - 3.0.3 3.0.3
meta - 1.15.0 1.15.0
typed_data - 1.3.2 1.3.2

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

The constraint `^0.26.0` on rxdart does not support the stable version `0.27.0`.

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

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.6, Dart 3.4.3.

Check the analysis log for details.

7
likes
140
pub points
0%
popularity

Publisher

verified publisherbdaya-dev.com

A simple implmentation of the repository pattern used at our company.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

hive, rxdart

More

Packages that depend on bdaya_repository_pattern