dart_monty_web 0.3.3
dart_monty_web: ^0.3.3 copied to clipboard
Flutter web plugin for dart_monty — Dart/Flutter bindings for Monty, a Rust-built embeddable sandbox running a restricted subset of Python.
example/example.dart
/// Web plugin registration example.
///
/// `dart_monty_web` registers itself automatically via Flutter's federated
/// plugin system. Import `dart_monty` in your app — no direct usage of
/// this package is needed.
///
/// ```dart
/// import 'package:dart_monty/dart_monty.dart';
///
/// final monty = MontyPlatform.instance;
/// final result = await monty.run('2 + 2');
/// print(result.value); // 4
/// ```
library;
void main() {
// This package registers itself automatically.
// See the dart_monty package for usage examples.
}