library p1.user; import "package:mapped/dep.dart" show msg; handle(dynamic v) { return v; } main() { print(msg); new Future.value(null) .then((x) => print(1)) .then(handle) .catchError(handle) .catchError((e) => console.error(e)); }