Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit a076fdb

Browse files
srawlinsnshahan
authored andcommitted
Add a type annotation to DomService's trackLayoutChange, so that the callback can be typed...
... and not violate #uses_dynamic_as_bottom. PiperOrigin-RevId: 186615117
1 parent c3d410c commit a076fdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/browser/dom_service/dom_service.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ class DomService {
382382
///
383383
/// Returns a subscription that allows pausing, resuming and canceling the
384384
/// observer.
385-
StreamSubscription trackLayoutChange(fn(), void callback(value),
385+
StreamSubscription trackLayoutChange<T>(T fn(), void callback(T value),
386386
{int framesToStabilize: 1, bool runInAngularZone: false}) {
387387
// TODO(google): Move layout checking into ruler service when landed.
388388
Function trackerCallback = callback;

0 commit comments

Comments
 (0)