Download flutter/packages/flutter_web_plugins/test/navigation/common.dart from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 1.04 kB
-
https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/packages/flutter_web_plugins/test/navigation/common.dart
- Command line
-
hf download hf://luom2645/agent-workspace/flutter/packages/flutter_web_plugins/test/navigation/common.dart
-
curl -L -o common.dart https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/packages/flutter_web_plugins/test/navigation/common.dart
1.04 kB
| // Copyright 2014 The Flutter Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| import 'package:flutter_web_plugins/url_strategy.dart'; | |
| /// A mock implementation of [PlatformLocation] that doesn't access the browser. | |
| class TestPlatformLocation implements PlatformLocation { | |
| String pathname = ''; | |
| String search = ''; | |
| String hash = ''; | |
| Object? get state => null; | |
| /// Mocks the base href of the document. | |
| String baseHref = ''; | |
| void addPopStateListener(EventListener fn) { | |
| throw UnimplementedError(); | |
| } | |
| void removePopStateListener(EventListener fn) { | |
| throw UnimplementedError(); | |
| } | |
| void pushState(Object? state, String title, String url) {} | |
| void replaceState(Object? state, String title, String url) {} | |
| void go(int count) { | |
| throw UnimplementedError(); | |
| } | |
| String getBaseHref() => baseHref; | |
| } | |