spatial_hash_new 1.0.3 copy "spatial_hash_new: ^1.0.3" to clipboard
spatial_hash_new: ^1.0.3 copied to clipboard

An easy-to-use Spatial Hash implementation for Dart. Common use case is for collision detection in games or querying spatially-related data. This is a fork of [spatial_hash](https://github.com/chrisno [...]

0
likes
130/ 160
pub points
25%
popularity

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

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

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.

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

27 out of 27 API elements (100.0 %) have documentation comments.

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add 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

0/0 points: WASM compatibility

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

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

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: Statements in an if should be enclosed in a block.

lib/src/spatial_hash_base.dart:88:7

   ╷
88 │ ┌       throw StateError(
89 │ └           "Cannot update an item that has not been added to the spatial hash");
   ╵

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

INFO: Statements in a for should be enclosed in a block.

lib/src/spatial_hash_base.dart:97:44

   ╷
97 │     for (final cell in _itemLookup[item]!) cell.remove(item);
   │                                            ^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/spatial_hash_base.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

No dependencies.

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.15, Dart 3.5.4.

Check the analysis log for details.

0
likes
130
pub points
25%
popularity

Publisher

unverified uploader

An easy-to-use Spatial Hash implementation for Dart. Common use case is for collision detection in games or querying spatially-related data. This is a fork of [spatial_hash](https://github.com/chrisnorman7/spatial_hash), which is itself a fork of [spatialhash](https://github.com/novemberisms/spatialhash).

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on spatial_hash_new