dart_actor 0.1.3

  • Readme
  • Changelog
  • Installing
  • 61

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:

  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';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

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

  • Dart: 2.5.1
  • pana: 0.12.21


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:dart_actor/dart_actor.dart.

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. (-1.99 points)

Analysis of lib/src/actor_context.dart reported 4 hints:

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

line 41 col 12: Avoid using null in if null operators.

line 47 col 12: Use isNotEmpty for Iterables and Maps.

line 50 col 11: Use isNotEmpty instead of length

Fix lib/src/actor_ref.dart. (-1 points)

Analysis of lib/src/actor_ref.dart reported 2 hints:

line 33 col 34: Avoid using null in if null operators.

line 38 col 34: Avoid using null in if null operators.

Fix lib/src/actor_scheduler.dart. (-0.50 points)

Analysis of lib/src/actor_scheduler.dart reported 1 hint:

line 16 col 73: Use ; instead of {} for empty constructor bodies.

Fix lib/src/listener.dart. (-0.50 points)

Analysis of lib/src/listener.dart reported 1 hint:

line 8 col 39: Don't explicitly initialize variables to null.

Format 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.


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.2
Transitive dependencies
charcode 1.1.2
collection 1.14.12
convert 2.1.1
crypto 2.1.3
typed_data 1.1.6
Dev dependencies
test ^1.5.1+1