dart_actor 0.1.3

  • Readme
  • Changelog
  • Installing
  • 53

dart_actor #

An experimental library for actor in dart.

0.1.3 #

  • chore: upgrade uuid to 2.x

0.1.2 #

  • fix: answer forgot add message.

0.1.0 #

  • Add ask pattern.

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:
  dart_actor: ^0.1.3

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:dart_actor/dart_actor.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
15
Health:
Code health derived from static analysis. [more]
87
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
97
Overall:
Weighted score of the above. [more]
53
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.12.21

Health issues and suggestions

Document public APIs. (-1 points)

100 out of 100 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/src/actor_context.dart. (-3.93 points)

Analysis of lib/src/actor_context.dart reported 8 hints, including:

line 11 col 36: Unnecessary new keyword.

line 21 col 31: Use ; instead of {} for empty constructor bodies.

line 24 col 25: Unnecessary new keyword.

line 25 col 20: Unnecessary new keyword.

line 26 col 24: Unnecessary new keyword.

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

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

line 9 col 23: Unnecessary new keyword.

line 14 col 21: Unnecessary new keyword.

line 15 col 9: Unnecessary new keyword.

line 15 col 32: Unnecessary new keyword.

line 19 col 12: Unnecessary new keyword.

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

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

line 5 col 31: Unnecessary new keyword.

line 15 col 22: Unnecessary new keyword.

line 23 col 20: Unnecessary new keyword.

line 38 col 20: Unnecessary new keyword.

line 45 col 12: Unnecessary new keyword.

Fix additional 5 files with analysis or formatting issues. (-3.49 points)

Additional issues in the following files:

  • lib/src/actor_ref.dart (4 hints)
  • lib/src/abstract_actor.dart (1 hint)
  • lib/src/actor_scheduler.dart (1 hint)
  • lib/src/listener.dart (1 hint)
  • lib/src/root_actor.dart (Run dartfmt to format lib/src/root_actor.dart.)

Maintenance suggestions

The package description is too short. (-3 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.

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 dart_actor.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.1.0 <3.0.0
event_bus ^1.0.1 1.1.0
uuid ^2.0.0 2.0.4
Transitive dependencies
charcode 1.1.2
collection 1.14.12
convert 2.1.1
crypto 2.1.4
typed_data 1.1.6
Dev dependencies
test ^1.5.1+1