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, and provided a score, details, and suggestions below.
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: web, other
Platform components identified in package:
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
Changelog entries help clients to follow the progress in your code.
Fix issues reported by
dartanalyzerreported 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:
example.dartor you could also use
|Dart SDK||>=1.0.0 <2.0.0|