dart_repl_sandbox 0.11.1

  • README.md
  • Installing
  • Versions
  • 50

Sandbox virtual package

The code in sandbox/ is used in the sandbox isolate. It is set up as a package with no dependencies. Do not import anything outside of sandbox/ from this directory. You can only use relative import paths.

1. Depend on it

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


dependencies:
  dart_repl_sandbox: "^0.11.1"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support 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_repl_sandbox/cell.dart';

import 'package:dart_repl_sandbox/cell_environment.dart';

import 'package:dart_repl_sandbox/data_queue.dart';

import 'package:dart_repl_sandbox/isolate_messages.dart';

import 'package:dart_repl_sandbox/message_channel.dart';

import 'package:dart_repl_sandbox/message_converter.dart';

import 'package:dart_repl_sandbox/message_queue.dart';

import 'package:dart_repl_sandbox/scope.dart';
        
Version Uploaded Documentation Archive
0.11.1 Apr 19, 2017 Go to the documentation of dart_repl_sandbox 0.11.1 Download dart_repl_sandbox 0.11.1 archive

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • tool failures on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
12 / 100
Health:
Code health derived from static analysis. [more]
96 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
76 / 100
Overall score:
Weighted score of the above. [more]
50

Platforms

Detected platforms: web, other

Platform components identified in package: mirrors.

Suggestions

  • Fix lib/message_channel.dart.

    Strong-mode analysis of lib/message_channel.dart failed with the following error:

    line: 43 col: 12
    Couldn't infer type parameter 'T'.\n\nTried to infer 'Message<dynamic>' for 'T' which doesn't work:\n Type parameter 'T' declared to extend 'Message<Message<dynamic>>'.\nThe type 'Message<dynamic>' was inferred from:\n Parameter 'object' declared as 'T'\n but argument is 'Message<dynamic>'.\n\nConsider passing explicit type argument(s) to the generic.\n\n

  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • Fix issues reported by dartanalyzer.

    dartanalyzer reported 1 error(s) and 0 warning(s).

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use dart_repl_sandbox.dart.

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.0.0 <2.0.0
Dev dependencies
test >=0.12.0 <0.13.0