import 'dart:ui'; import 'detached_platform.dart'; import 'detached_route.dart'; DetachedPlatform createDetachedPlatform() => UnsupportedDetachedPlatform(); DetachedRoute? launchedDetachedRoute(List args) => DetachedRoute.fromLaunch(args); /// A platform without windows of its own (a phone): nothing opens. class UnsupportedDetachedPlatform extends DetachedPlatform { @override bool get supported => false; @override Future launch( DetachedRoute route, { required String title, required Size size, bool tab = false, }) async => DetachedLaunch.failed; @override Stream get messages => const Stream.empty(); @override Future put(String token, String json) async {} @override Future take(String token) async => null; @override Future sendToMain(DetachedMessage message) async => false; @override Future closeSelf() async {} @override Future becomeMain(String appPath) async => false; }