Closed munificent closed 9 years ago
Can I do something like:
import 'html5lib_element.dart' when 'dart:io'; import 'dart:html' when 'dart:html'; class MyElement extends Element {}
And have it get the right base class at runtime based on which library was imported?
CC @jmesserly
I see this is closed, but it doesn't seem to address the package:html Element use case at all? Unless I'm missing something?
Can I do something like:
And have it get the right base class at runtime based on which library was imported?
CC @jmesserly