Run Dart 3 online — the Flutter language, browser-hosted.
Dart is Google's language for Flutter — a modern, null-safe, JIT/AOT-compiled language optimized for UI development but perfectly capable of general-purpose work. Since Dart 3 the null safety and pattern matching are excellent.
ls-judge runs Dart 3.x with the standard SDK inside a Firecracker microVM. This is Dart-VM console execution — no Flutter UI, but everything you need for algorithm work or CLI utilities.
Clicking "Run now" opens the playground with this exact code and a matching test case pre-loaded — passes on first Run.
import 'dart:io';
void main() {
final n = int.parse(stdin.readLineSync()!.trim());
print(n * 2);
}
21
42