fpfantasy 1.0.4

  • Readme
  • Changelog
  • Installing
  • 44

Fp Fantasy #

Fp style in the Dart 2!

Created from templates made available by Stagehand under a BSD-style license.

Usage #

documentation

Features and bugs #

Please file feature requests and bugs at the issue tracker.

0.0.1 #

  • Initial version, created by Stagehand

Use this package as a library

1. Depend on it

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


dependencies:
  fpfantasy: ^1.0.4

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:fpfantasy/fpfantasy.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
29
Health:
Code health derived from static analysis. [more]
42
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
84
Overall:
Weighted score of the above. [more]
44
Learn more about scoring.

We analyzed this package on Jan 24, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4

Health issues and suggestions

Fix lib/src/chain.dart. (-44.87 points)

Analysis of lib/src/chain.dart failed with 2 errors, 4 hints, including:

line 40 col 17: 'T' can't be used contravariantly or invariantly in '_Base

line 46 col 19: 'V' can't be used contravariantly or invariantly in '_Base

line 3 col 1: Prefer using /// for doc comments.

line 12 col 35: Unnecessary new keyword.

line 14 col 1: Prefer using /// for doc comments.

Fix lib/src/immutable/imMap.dart. (-9.54 points)

Analysis of lib/src/immutable/imMap.dart reported 20 hints, including:

line 13 col 39: Avoid types as parameter names.

line 25 col 26: Avoid types as parameter names.

line 25 col 29: Avoid types as parameter names.

line 29 col 43: Avoid types as parameter names.

line 29 col 46: Avoid types as parameter names.

Fix lib/src/immutable/imList.dart. (-6.78 points)

Analysis of lib/src/immutable/imList.dart reported 14 hints, including:

line 15 col 12: Unnecessary new keyword.

line 26 col 23: Avoid types as parameter names.

line 30 col 27: Avoid types as parameter names.

line 35 col 12: Unnecessary new keyword.

line 38 col 22: Avoid types as parameter names.

Fix additional 10 files with analysis or formatting issues. (-14.79 points)

Additional issues in the following files:

  • lib/src/maybe.dart (13 hints)
  • lib/src/matching.dart (4 hints)
  • lib/src/types.dart (4 hints)
  • lib/src/map/flattenMap.dart (2 hints)
  • lib/src/map/generate.dart (2 hints)
  • lib/src/ap.dart (1 hint)
  • lib/src/compose.dart (1 hint)
  • lib/src/concat.dart (1 hint)
  • lib/src/curry/curry.dart (1 hint)
  • lib/src/list/flattenList.dart (1 hint)

Maintenance suggestions

Package is getting outdated. (-15.62 points)

The package was last published 60 weeks ago.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.67.0 <3.0.0
Dev dependencies
test ^1.3.0