Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 7d2ad3e

Browse files
author
a-wallen
committed
Assert one of window/view is null in copyWith ViewConfiguration
1 parent 75d1cbe commit 7d2ad3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/ui/platform_dispatcher.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,6 +1328,7 @@ class ViewConfiguration {
13281328
GestureSettings? gestureSettings,
13291329
List<DisplayFeature>? displayFeatures,
13301330
}) {
1331+
assert(view == null || window == null);
13311332
return ViewConfiguration(
13321333
view: view ?? this.view,
13331334
devicePixelRatio: devicePixelRatio ?? this.devicePixelRatio,

0 commit comments

Comments
 (0)