Home
last modified time | relevance | path

Searched refs:VoidCallback (Results 1 – 25 of 171) sorted by relevance

1234567

/third_party/flutter/flutter/packages/flutter/test/foundation/
Dchange_notifier_test.dart37 final VoidCallback listener = () { log.add('listener'); };
38 final VoidCallback listener1 = () { log.add('listener1'); };
39 final VoidCallback listener2 = () { log.add('listener2'); };
40 final VoidCallback badListener = () { log.add('badListener'); throw null; };
111 final VoidCallback listener1 = () { log.add('listener1'); };
112 final VoidCallback listener3 = () { log.add('listener3'); };
113 final VoidCallback listener4 = () { log.add('listener4'); };
114 final VoidCallback listener2 = () {
144 final VoidCallback listener1 = () { log.add('listener1'); };
145 final VoidCallback listener2 = () { log.add('listener2'); };
[all …]
Dcapture_output.dart8 List<String> captureOutput(VoidCallback fn) {
/third_party/flutter/flutter/packages/flutter/test/animation/
Diteration_patterns_test.dart22 final VoidCallback listener1 = () { log.add('listener1'); };
23 final VoidCallback listener3 = () { log.add('listener3'); };
24 final VoidCallback listener4 = () { log.add('listener4'); };
25 final VoidCallback listener2 = () {
90 final VoidCallback listener1 = () { log.add('listener1'); };
91 final VoidCallback badListener = () { log.add('badListener'); throw null; };
92 final VoidCallback listener2 = () { log.add('listener2'); };
/third_party/flutter/flutter/packages/flutter_test/lib/src/
Dwindow.dart152 VoidCallback get onMetricsChanged => _window.onMetricsChanged;
154 set onMetricsChanged(VoidCallback callback) {
187 VoidCallback get onLocaleChanged => _window.onLocaleChanged;
189 set onLocaleChanged(VoidCallback callback) {
221 VoidCallback get onPlatformBrightnessChanged => _window.onPlatformBrightnessChanged;
223 set onPlatformBrightnessChanged(VoidCallback callback) {
254 VoidCallback get onTextScaleFactorChanged => _window.onTextScaleFactorChanged;
256 set onTextScaleFactorChanged(VoidCallback callback) {
268 VoidCallback get onDrawFrame => _window.onDrawFrame;
270 set onDrawFrame(VoidCallback callback) {
[all …]
/third_party/flutter/flutter/packages/flutter/lib/src/foundation/
Dchange_notifier.dart68 void addListener(VoidCallback listener);
72 void removeListener(VoidCallback listener);
90 /// API using [VoidCallback] for notifications.
100 ObserverList<VoidCallback> _listeners = ObserverList<VoidCallback>();
140 void addListener(VoidCallback listener) {
165 void removeListener(VoidCallback listener) {
202 final List<VoidCallback> localListeners = List<VoidCallback>.from(_listeners);
203 for (VoidCallback listener in localListeners) {
233 void addListener(VoidCallback listener) {
240 void removeListener(VoidCallback listener) {
DREADME.md6 Currently they do depend on dart:ui, but only for `VoidCallback` and
12 * https://github.com/dart-lang/sdk/issues/27791 (`VoidCallback`)
Dprofile.dart18 void profile(VoidCallback function) {
/third_party/flutter/flutter/packages/flutter/lib/src/animation/
Dlistener_helpers.dart83 final ObserverList<VoidCallback> _listeners = ObserverList<VoidCallback>();
100 void addListener(VoidCallback listener) {
108 void removeListener(VoidCallback listener) {
120 final List<VoidCallback> localListeners = List<VoidCallback>.from(_listeners);
121 for (VoidCallback listener in localListeners) {
Danimations.dart20 void addListener(VoidCallback listener) { }
23 void removeListener(VoidCallback listener) { }
52 void addListener(VoidCallback listener) { }
55 void removeListener(VoidCallback listener) { }
97 void addListener(VoidCallback listener) { }
100 void removeListener(VoidCallback listener) { }
138 void addListener(VoidCallback listener) => parent.addListener(listener);
143 void removeListener(VoidCallback listener) => parent.removeListener(listener);
269 void addListener(VoidCallback listener) {
275 void removeListener(VoidCallback listener) {
[all …]
/third_party/flutter/engine/flutter/shell/platform/embedder/
Dembedder.h77 typedef void (*VoidCallback)(void* /* user data */); typedef
99 VoidCallback destruction_callback;
116 VoidCallback destruction_callback;
406 VoidCallback destruction_callback;
814 VoidCallback callback,
/third_party/flutter/flutter/packages/flutter/test/semantics/
Dsemantics_test.dart518 configuration.customSemanticsActions = <CustomSemanticsAction, VoidCallback>{
605 final VoidCallback onShowOnScreen = () { };
606 final VoidCallback onScrollDown = () { };
607 final VoidCallback onScrollUp = () { };
608 final VoidCallback onScrollLeft = () { };
609 final VoidCallback onScrollRight = () { };
610 final VoidCallback onLongPress = () { };
611 final VoidCallback onDecrease = () { };
612 final VoidCallback onIncrease = () { };
615 final VoidCallback onTap = () { };
[all …]
/third_party/flutter/flutter/packages/flutter/test/material/
Dfeedback_test.dart73 final VoidCallback callback = () {
135 final VoidCallback callback = () {
213 static VoidCallback nullHandler(BuildContext context) => null;
225 typedef HandlerCreator = VoidCallback Function(BuildContext context);
Dreorderable_list_test.dart303 Map<CustomSemanticsAction, VoidCallback> getSemanticsActions(int index) {
323 … final Map<CustomSemanticsAction, VoidCallback> firstSemanticsActions = getSemanticsActions(0);
332 … final Map<CustomSemanticsAction, VoidCallback> ithSemanticsActions = getSemanticsActions(i);
341 …final Map<CustomSemanticsAction, VoidCallback> lastSemanticsActions = getSemanticsActions(listItem…
357 Map<CustomSemanticsAction, VoidCallback> firstSemanticsActions = getSemanticsActions(0);
378 Map<CustomSemanticsAction, VoidCallback> middleSemanticsActions = getSemanticsActions(1);
413 …Map<CustomSemanticsAction, VoidCallback> lastSemanticsActions = getSemanticsActions(listItems.leng…
659 Map<CustomSemanticsAction, VoidCallback> getSemanticsActions(int index) {
678 … final Map<CustomSemanticsAction, VoidCallback> firstSemanticsActions = getSemanticsActions(0);
687 … final Map<CustomSemanticsAction, VoidCallback> ithSemanticsActions = getSemanticsActions(i);
[all …]
/third_party/flutter/engine/flutter/testing/dart/
Dwindow_hooks_integration_test.dart35 VoidCallback originalOnMetricsChanged;
36 VoidCallback originalOnLocaleChanged;
38 VoidCallback originalOnDrawFrame;
41 VoidCallback originalOnSemanticsEnabledChanged;
44 VoidCallback originalOnTextScaleFactorChanged;
/third_party/flutter/engine/flutter/lib/web_ui/lib/src/ui/
Dwindow.dart9 typedef VoidCallback = void Function();
626 VoidCallback get onTextScaleFactorChanged => _onTextScaleFactorChanged;
627 VoidCallback _onTextScaleFactorChanged;
628 set onTextScaleFactorChanged(VoidCallback callback) {
646 VoidCallback get onPlatformBrightnessChanged => _onPlatformBrightnessChanged;
647 VoidCallback _onPlatformBrightnessChanged;
648 set onPlatformBrightnessChanged(VoidCallback callback) {
668 VoidCallback get onMetricsChanged => _onMetricsChanged;
669 VoidCallback _onMetricsChanged;
670 set onMetricsChanged(VoidCallback callback) {
[all …]
/third_party/flutter/flutter/packages/flutter/lib/src/semantics/
Dsemantics.dart855 final VoidCallback onTap;
865 final VoidCallback onLongPress;
878 final VoidCallback onScrollLeft;
891 final VoidCallback onScrollRight;
904 final VoidCallback onScrollUp;
917 final VoidCallback onScrollDown;
930 final VoidCallback onIncrease;
943 final VoidCallback onDecrease;
951 final VoidCallback onCopy;
960 final VoidCallback onCut;
[all …]
/third_party/flutter/engine/flutter/lib/web_ui/lib/src/
Dengine.dart98 final List<ui.VoidCallback> _hotRestartListeners = <ui.VoidCallback>[];
101 void registerHotRestartListener(ui.VoidCallback listener) {
125 for (ui.VoidCallback listener in _hotRestartListeners) {
/third_party/flutter/flutter/packages/flutter/lib/src/material/
Dtext_selection.dart36 final VoidCallback handleCut;
37 final VoidCallback handleCopy;
38 final VoidCallback handlePaste;
39 final VoidCallback handleSelectAll;
Dtab_indicator.dart61 _UnderlinePainter createBoxPainter([ VoidCallback onChanged ]) {
67 _UnderlinePainter(this.decoration, VoidCallback onChanged)
/third_party/flutter/flutter/packages/flutter/test/rendering/
Drendering_tester.dart31 VoidCallback onErrors;
143 VoidCallback onErrors,
166 void pumpFrame({ EnginePhase phase = EnginePhase.layout, VoidCallback onErrors }) {
182 final VoidCallback onPaint;
/third_party/flutter/flutter/packages/flutter/test/widgets/
Dbaseline_test.dart99 final VoidCallback callback;
113 VoidCallback callback;
/third_party/flutter/flutter/packages/flutter/lib/src/rendering/
Dproxy_box.dart3511 VoidCallback onTap,
3512 VoidCallback onDismiss,
3513 VoidCallback onLongPress,
3514 VoidCallback onScrollLeft,
3515 VoidCallback onScrollRight,
3516 VoidCallback onScrollUp,
3517 VoidCallback onScrollDown,
3518 VoidCallback onIncrease,
3519 VoidCallback onDecrease,
3520 VoidCallback onCopy,
[all …]
/third_party/flutter/engine/flutter/lib/ui/
Dwindow.dart8 typedef VoidCallback = void Function();
748 VoidCallback get onMetricsChanged => _onMetricsChanged;
749 VoidCallback _onMetricsChanged;
751 set onMetricsChanged(VoidCallback callback) {
799 VoidCallback get onLocaleChanged => _onLocaleChanged;
800 VoidCallback _onLocaleChanged;
802 set onLocaleChanged(VoidCallback callback) {
854 VoidCallback get onTextScaleFactorChanged => _onTextScaleFactorChanged;
855 VoidCallback _onTextScaleFactorChanged;
857 set onTextScaleFactorChanged(VoidCallback callback) {
[all …]
/third_party/flutter/flutter/dev/manual_tests/lib/
Dactions.dart51 final Set<VoidCallback> _listeners = <VoidCallback>{};
54 void addListener(VoidCallback listener) {
59 void removeListener(VoidCallback listener) {
68 for (VoidCallback callback in _listeners) {
/third_party/flutter/flutter/packages/flutter/lib/src/widgets/
Dmodal_barrier.dart188 VoidCallback onAnyTapDown;
281 final VoidCallback onAnyTapDown;
293 final VoidCallback onAnyTapDown;
321 final VoidCallback onAnyTapDown;

1234567