Download flutter/packages/flutter_test/lib/src/test_vsync.dart from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 625 Bytes
-
https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/packages/flutter_test/lib/src/test_vsync.dart
- Command line
-
hf download hf://luom2645/agent-workspace/flutter/packages/flutter_test/lib/src/test_vsync.dart
-
curl -L -o test_vsync.dart https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/packages/flutter_test/lib/src/test_vsync.dart
625 Bytes
| // 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. | |
| /// @docImport 'package:flutter/animation.dart'; | |
| library; | |
| import 'package:flutter/scheduler.dart'; | |
| /// A [TickerProvider] that creates a standalone ticker. | |
| /// | |
| /// Useful in tests that create an [AnimationController] outside of the widget | |
| /// tree. | |
| class TestVSync implements TickerProvider { | |
| /// Creates a ticker provider that creates standalone tickers. | |
| const TestVSync(); | |
| Ticker createTicker(TickerCallback onTick) => Ticker(onTick); | |
| } | |