{"repo":"fzyzcjy/dart_interactive","free":true,"listed":false,"github":"https://github.com/fzyzcjy/dart_interactive","clone":"git clone https://github.com/fzyzcjy/dart_interactive.git","description":"REPL (interactive shell) for Dart, supporting 3rd party packages, hot reload, and full grammar","language":"Dart","stars":259,"topics":["dart","flutter","interactive","repl","shell"],"license":"MIT","category":"mobile-apps","readme_excerpt":"dart interactive A lot of sibling languages have a REPL, and is quite helpful in everyday usage, while Dart did not have it (even though it was the 7th highest-voted request). So here it comes! 🚀 Features A full-featured REPL (interactive shell), with: Use any third-party package freely Auto hot-reload code anywhere, with state preserved Supports full grammar in REPL Play with existing code side-by-side 📚 Demo Demo 1: Demonstrate features 1. Use 3rd party package 2. Auto hot-reload 3. Support full grammar Demo 2: Sample workflow Surely, you do not have to use it like this. It is just a workflow that I personally feel comfortable when working with IPython/Juypter. Suppose we have my app.dart with some code, probably edited inside an IDE: Play with it a bit: Then we realize something wrong and want to change it: Continue playing with it (auto hot reloaded, and state preserved): We can also use all dependencies in the package as well, since the REPL code is just like a normal code file in this package. 🎼 Getting started Install (just standard procedure of installing global dart packages): Use (just a normal binary): And play with it :) Detailed functionality list Expressions Statements (All methods, not only print ) Functions Define and redefine Use local and global variables Classes Define and redefine, preserving states Remark: This follows the Dart hot reload semantics. Extends and implements Use local variables, fields, and global variables Add libraries as dependency Use","default_branch":null,"files":null,"tree":[],"storefront":"/r/fzyzcjy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fzyzcjy/dart_interactive/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}