fluartx 0.0.4

  • Readme
  • Changelog
  • Installing
  • 55

A library for Flutter/Dart api extensions.

Usage #

A simple usage example:

import 'package:fluartx/fluartx.dart';

main() {
  <Object>[1, "B", 3, "D"]
      .where(Predicates.instanceOf(String))
      .map(Transformers.forMap({"B": 2, "D": 4}))
      .toList();

  // group by odd even
  var groupMap = <int>[1, 2, 3, 4, 5].groupBy((ele) => ele % 2);
  // print even list
  groupMap[0].join("\t").also<String>(printFunction());
  // print odd list
  groupMap[1].join("\t").also<String>(printFunction());
  
  //output: 
  // 2	4
  // 1	3  5
}

0.0.1 #

  • Initial version

0.0.2 #

  • format some file

0.0.3 #

  • change homepage

0.0.4 #

  • 1.remove files
  • 2.add extensions for Iterator and Map(For Dart 2.6)

Use this package as a library

1. Depend on it

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


dependencies:
  fluartx: ^0.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:fluartx/fluartx.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
25
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
60
Overall:
Weighted score of the above. [more]
55
Learn more about scoring.

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

  • Dart: 2.6.1
  • pana: 0.13.1+4

Health suggestions

Format lib/src/collections.dart.

Run dartfmt to format lib/src/collections.dart.

Format lib/src/transformers.dart.

Run dartfmt to format lib/src/transformers.dart.

Maintenance issues and suggestions

Make sure dartdoc successfully runs on your package's source files. (-10 points)

exitCode: 255 stdout: parsing /tmp/pub-dartlang-dartdocAWERUF/pkg/lib/fluartx.dart... parsing /dart-sdk/lib/core/core.dart... parsing /dart-sdk/lib/collection/collection.dart... parsing /dart-sdk/lib/internal/internal.dart... parsing /dart-sdk/lib/async/async.dart... parsing /dart-sdk/lib/convert/convert.dart... parsing /dart-sdk/lib/typed_data/typed_data.dart... parsing /dart-sdk/lib/math/math.dart... parsing /tmp/pub-dartlang-dartdocAWERUF/pkg/lib/src/annotations.dart... parsing /tmp/pub-dartlang-dartdocAWERUF/pkg/lib/src/collections.dart... parsing /tmp/pub-dartlang-dartdocAWERUF/pkg/lib/src/maps.dart... parsing /tmp/pub-dartlang-dartdocAWERUF/pkg/lib/src/preconditions.dart... parsing /tmp/pub-dartlang-dartdocAWERUF/pkg/lib/src/pair.dart... parsing /tmp/pub-dartlang-dartdocAWERUF/pkg/lib/src/measure_time.dart... parsing /tmp/pub-dartlang-dartdocAWERUF/pkg/lib/src/predicates.dart... parsing /tmp/pub-dartlang-dartdocAWERUF/pkg/lib/src/transformers.dart... parsing /tmp/pub-dartlang-dartdocAWERUF/pkg/lib/src/result.dart... parsing /tmp/pub-dartlang-dartdocAWERUF/pkg/lib/src/standard.dart... parsing /dart-sdk/lib/developer/developer.dart... parsing /dart-sdk/lib/isolate/isolate.dart... parsing /dart-sdk/lib/ffi/ffi.dart... parsing /dart-sdk/lib/html/dart2js/html_dart2js.dart... parsing /dart-sdk/lib/html/html_common/html_common_dart2js.dart... parsing /dart-sdk/lib/web_gl/dart2js/web_gl_dart2js.dart... parsing /dart-sdk/lib/_internal/js_runtime/lib/native_typed_data.dart... parsing /dart-sdk/lib/_internal/js_runtime/lib/interceptors.dart... parsing /dart-sdk/lib/_internal/js_runtime/lib/shared/embedded_names.dart... parsing /dart-sdk/lib/_internal/js_runtime/lib/js_helper.dart... parsing /dart-sdk/lib/_internal/js_runtime/lib/foreign_helper.dart... parsing /dart-sdk/lib/_internal/js_runtime/lib/js_names.dart... parsing /dart-sdk/lib/_internal/js_runtime/lib/rti.dart... parsing /dart-sdk/lib/_internal/js_runtime/lib/shared/recipe_syntax.dart... parsing /dart-sdk/lib/html/html_common/metadata.dart... parsing /dart-sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart... parsing /dart-sdk/lib/svg/dart2js/svg_dart2js.dart... parsing /dart-sdk/lib/web_audio/dart2js/web_audio_dart2js.dart... parsing /dart-sdk/lib/web_sql/dart2js/web_sql_dart2js.dart... parsing /dart-sdk/lib/_http/http.dart... parsing /dart-sdk/lib/io/io.dart... parsing /dart-sdk/lib/js/dart2js/js_dart2js.dart... parsing /dart-sdk/lib/js/_js.dart... parsing /dart-sdk/lib/js_util/dart2js/js_util_dart2js.dart... parsing /dart-sdk/lib/mirrors/mirrors.dart... parsing /dart-sdk/lib/html/dartium/nativewrappers.dart... parsing /dart-sdk/lib/cli/cli.dart... parsing /dart-sdk/lib/wasm/wasm.dart... parsing /dart-sdk/lib/_internal/js_runtime/lib/js_primitives.dart... parsing /dart-sdk/lib/_internal/js_runtime/lib/shared/async_await_error_codes.dart... stderr: Documenting fluartx... Unhandled exception: type 'UndefinedElementType' is not a subtype of type 'DefinedElementType' #0 new Extension (package:dartdoc/src/model.dart:1342:5) #1 new ModelElement.from (package:dartdoc/src/model.dart:3289:29) #2 Library.extensions.

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

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

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

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and fluartx.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.6.0 <3.0.0
Dev dependencies
pedantic ^1.8.0
test ^1.6.0