Download flutter/dev/integration_tests/ui/lib/track_widget_creation.dart from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 644 Bytes
-
https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/dev/integration_tests/ui/lib/track_widget_creation.dart
- Command line
-
hf download hf://luom2645/agent-workspace/flutter/dev/integration_tests/ui/lib/track_widget_creation.dart
-
curl -L -o track_widget_creation.dart https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/dev/integration_tests/ui/lib/track_widget_creation.dart
644 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. | |
| import 'dart:developer'; | |
| import 'package:flutter/widgets.dart'; | |
| void main() { | |
| final Set<Widget> widgets = <Widget>{}; | |
| widgets.add(const Text('same')); | |
| widgets.add(const Text('same')); | |
| // If track-widget-creation is enabled, the set will have 2 members. | |
| // Otherwise is will only have one. | |
| registerExtension('ext.devicelab.test', (String method, Map<String, Object> params) async { | |
| return ServiceExtensionResponse.result('{"result":${widgets.length}}'); | |
| }); | |
| } | |