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.
Add this to your package's pubspec.yaml file:
dependencies: dart_repl_sandbox: "^0.11.1"
You can install packages from the command line:
$ pub get
Alternatively, your editor might support
Check the docs for your editor to learn more.
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';
|0.11.1||Apr 19, 2017|
We analyzed this package on Apr 9, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
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]
Detected platforms: other
Platform components identified in package:
Changelog entries help clients to follow the progress in your code.
Fix analysis and formatting issues.
Analysis or formatting checks reported 1 error 2 hints.
Strong-mode analysis of
lib/message_channel.dartfailed 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
Similar analysis of the following files failed:
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:
example.dartor you could also use
|Dart SDK||>=1.0.0 <2.0.0|