jetutil 0.0.1

  • README.md
  • Installing
  • Versions
  • 0

jetutil.dart

A collection of utility function.

Use this package as a library

1. Depend on it

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


dependencies:
  jetutil: ^0.0.1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:jetutil/jetutil.dart';
  
Version Uploaded Documentation Archive
0.0.1 Sep 1, 2016 Go to the documentation of jetutil 0.0.1 Download jetutil 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
0
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
0
Overall:
Weighted score of the above. [more]
0
Learn more about scoring.

We analyzed this package on Oct 10, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.12.4

Platforms

Detected platforms: unsure

Low code quality prevents platform classification.

Health issues and suggestions

Fix lib/src/numeric.dart. (-98.22 points)

Analysis of lib/src/numeric.dart failed with 14 errors, including:

line 3 col 16: Couldn't infer type parameter 'T'.\n\nTried to infer 'dynamic' for 'T' which doesn't work:\n Type parameter 'T' declared to extend 'num'.\nThe type 'dynamic' was inferred from:\n Parameter 'a' declared as 'T'\n but argument is 'dynamic'.\n Parameter 'b' declared as 'T'\n but argument is 'dynamic'.\n\nConsider passing explicit type argument(s) to the generic.\n\n

line 3 col 23: Couldn't infer type parameter 'T'.\n\nTried to infer 'dynamic' for 'T' which doesn't work:\n Type parameter 'T' declared to extend 'num'.\nThe type 'dynamic' was inferred from:\n Parameter 'a' declared as 'T'\n but argument is 'dynamic'.\n Parameter 'b' declared as 'T'\n but argument is 'dynamic'.\n\nConsider passing explicit type argument(s) to the generic.\n\n

line 4 col 24: Couldn't infer type parameter 'T'.\n\nTried to infer 'dynamic' for 'T' which doesn't work:\n Type parameter 'T' declared to extend 'num'.\nThe type 'dynamic' was inferred from:\n Parameter 'a' declared as 'T'\n but argument is 'dynamic'.\n Parameter 'b' declared as 'T'\n but argument is 'dynamic'.\n\nConsider passing explicit type argument(s) to the generic.\n\n

line 4 col 30: Couldn't infer type parameter 'T'.\n\nTried to infer 'dynamic' for 'T' which doesn't work:\n Type parameter 'T' declared to extend 'num'.\nThe type 'dynamic' was inferred from:\n Parameter 'a' declared as 'T'\n but argument is 'dynamic'.\n Parameter 'b' declared as 'T'\n but argument is 'dynamic'.\n\nConsider passing explicit type argument(s) to the generic.\n\n

line 4 col 42: Couldn't infer type parameter 'T'.\n\nTried to infer 'dynamic' for 'T' which doesn't work:\n Type parameter 'T' declared to extend 'num'.\nThe type 'dynamic' was inferred from:\n Parameter 'a' declared as 'T'\n but argument is 'dynamic'.\n Parameter 'b' declared as 'T'\n but argument is 'dynamic'.\n\nConsider passing explicit type argument(s) to the generic.\n\n

Fix lib/src/prime.dart. (-57.81 points)

Analysis of lib/src/prime.dart failed with 3 errors:

line 50 col 10: The return type 'List<bool>' isn't a 'List<int>', as defined by the method 'sieveUnder'.

line 56 col 26: Conditions must have a static type of 'bool'.

line 59 col 30: Conditions must have a static type of 'bool'.

Fix lib/src/iterable.dart. (-43.75 points)

Analysis of lib/src/iterable.dart failed with 2 errors:

line 68 col 41: Couldn't infer type parameter 'T'.\n\nTried to infer 'dynamic' for 'T' which doesn't work:\n Type parameter 'T' declared to extend 'num'.\nThe type 'dynamic' was inferred from:\n Function type declared as '<T extends num>(T, T) → T'\n used where '(dynamic, dynamic) → dynamic' is required.\n\nConsider passing explicit type argument(s) to the generic.\n\n

line 69 col 41: Couldn't infer type parameter 'T'.\n\nTried to infer 'dynamic' for 'T' which doesn't work:\n Type parameter 'T' declared to extend 'num'.\nThe type 'dynamic' was inferred from:\n Function type declared as '<T extends num>(T, T) → T'\n used where '(dynamic, dynamic) → dynamic' is required.\n\nConsider passing explicit type argument(s) to the generic.\n\n

Fix additional 3 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/jetutil.dart (Run dartfmt to format lib/jetutil.dart.)
  • lib/src/io/ByteListReader.dart (Run dartfmt to format lib/src/io/ByteListReader.dart.)
  • lib/src/predicate.dart (Run dartfmt to format lib/src/predicate.dart.)

Maintenance issues and suggestions

Fix platform conflicts. (-20 points)

Low code quality prevents platform classification.

Package is too old. (-100 points)

The package was released more than two years ago.

Maintain CHANGELOG.md. (-20 points)

Changelog entries help clients to follow the progress in your code.

Add SDK constraint in pubspec.yaml. (-5 points)

For information about setting SDK constraint, please see https://www.dartlang.org/tools/pub/pubspec#sdk-constraints.

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use jetutil.dart.

Package is pre-v0.1 release. (-10 points)

While there is nothing inherently wrong with versions of 0.0.*, it usually means that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Dev dependencies
test any