Is Dart Dev Compiler supposed to support dart:io?

Issue

I tried compiling a simple HttpServer.bind with DDC and it seems to throw a runtime error saying “Operation not supported” on that line.

Am I doing something wrong, or is DDC not supposed to support that?

Solution

Dart Dev Compiler does not support dart:io. It is only for web applications.

Answered By – Harry Terkelsen

Answer Checked By – Katrina (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *