fpfantasy 1.0.4

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]
38
Health:
Code health derived from static analysis. [more]
46
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
53
Learn more about scoring.

We analyzed this package on Aug 16, 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:fpfantasy/fpfantasy.dart.

Health issues and suggestions

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

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

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 14 col 1: Prefer using /// for doc comments.

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

Analysis of lib/src/immutable/imMap.dart reported 12 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/maybe.dart. (-2.96 points)

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

line 6 col 7: Don't explicitly initialize variables to null.

line 26 col 7: Don't explicitly initialize variables to null.

line 51 col 33: Avoid types as parameter names.

line 69 col 33: Avoid types as parameter names.

line 99 col 14: Avoid types as parameter names.

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

Additional issues in the following files:

  • lib/src/immutable/imList.dart (5 hints)
  • lib/src/map/flattenMap.dart (2 hints)
  • lib/src/map/generate.dart (2 hints)
  • lib/src/matching.dart (2 hints)
  • lib/src/types.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)

Dependencies

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