We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a93a267 commit 658f710Copy full SHA for 658f710
packages/desktop_multi_window/lib/desktop_multi_window.dart
@@ -76,9 +76,8 @@ class DesktopMultiWindow {
76
final result = await miltiWindowChannel
77
.invokeMethod<List<dynamic>>('getAllSubWindowIds');
78
final ids = result?.cast<int>() ?? const [];
79
- assert(ids.isNotEmpty);
80
- assert(ids.every((id) => id > 0));
81
assert(!ids.contains(0), 'ids must not contains main window id');
+ assert(ids.every((id) => id > 0), 'id must be greater than 0');
82
return ids;
83
}
84
0 commit comments