I am trying to use deferred libraries and the new async style, but it does not seem to work:
import 'dart:async';
import 'package:defer/library1.dart' deferred as lib1;
void main() async {
var b = await lib1.loadLibrary();
var a = new lib1.MyClass('Peter');
print(a.name);
}
The deferred library is never loaded and Dartium loading indication always stays on.
Am I doing something wrong?
type '_Future' is not a subtype of type 'void' of 'function result'.
for thevoid
beforemain()...
? – Günter Zöchbauer