utilary 1.0.5

A very simple package containing utility classes that I use in my other project.

1.0.5 #

  • Fix an error with rng.range function.
  • Formatted everything.

1.0.4 #

  • Fix an error with Rectangle.fromTopLeftBottomRight constructor.

1.0.3 #

  • Array2D can be inizialized in construction through Array2D.generated(Function).
  • Add Array2D.bounds.

1.0.2 #

  • Remove color.dart. It's not related to this package.

1.0.1 #

  • Add CHANGELOG.md
  • Add return statement to distanceTo.
  • Fix exports.
  • Formatted everything with dartfmt.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  utilary: ^1.0.5

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:utilary/utilary.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
1
Health:
Code health derived from static analysis. [more]
90
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
46
Learn more about scoring.

We analyzed this package on Aug 14, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.4.0
  • pana: 0.12.19

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:utilary/utilary.dart.

Health suggestions

Fix lib/src/rectangle.dart. (-2.96 points)

Analysis of lib/src/rectangle.dart reported 6 hints, including:

line 81 col 7: DO use curly braces for all flow control structures.

line 86 col 7: DO use curly braces for all flow control structures.

line 100 col 40: DO use curly braces for all flow control structures.

line 103 col 44: DO use curly braces for all flow control structures.

line 106 col 45: DO use curly braces for all flow control structures.

Fix lib/src/vector.dart. (-2.96 points)

Analysis of lib/src/vector.dart reported 6 hints, including:

line 27 col 7: DO use curly braces for all flow control structures.

line 35 col 7: DO use curly braces for all flow control structures.

line 43 col 7: DO use curly braces for all flow control structures.

line 51 col 7: DO use curly braces for all flow control structures.

line 59 col 7: DO use curly braces for all flow control structures.

Fix lib/src/array2d.dart. (-2.48 points)

Analysis of lib/src/array2d.dart reported 5 hints:

line 19 col 7: DO use curly braces for all flow control structures.

line 19 col 46: DO use curly braces for all flow control structures.

line 34 col 34: DO use curly braces for all flow control structures.

line 36 col 34: DO use curly braces for all flow control structures.

line 38 col 34: DO use curly braces for all flow control structures.

Fix lib/src/rng.dart. (-1.49 points)

Analysis of lib/src/rng.dart reported 3 hints:

line 41 col 7: DO use curly braces for all flow control structures.

line 43 col 7: DO use curly braces for all flow control structures.

line 45 col 7: DO use curly braces for all flow control structures.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and utilary.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >= 2.0.0 < 3.0.0