Skip to content

Commit 25ecf07

Browse files
committed
It does not make sense for the modify method to be an override since different window types will have different values
1 parent 10a91d1 commit 25ecf07

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/flutter/lib/src/widgets/window.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ abstract class WindowController with ChangeNotifier {
4848
/// The archetype of the window.
4949
WindowArchetype get type;
5050

51-
/// Modifies this window with the provided properties.
52-
Future<void> modify({Size? size});
53-
5451
/// Destroys this window.
5552
Future<void> destroy() async {
5653
if (view == null) {
@@ -67,7 +64,7 @@ class RegularWindowController extends WindowController {
6764
@override
6865
WindowArchetype get type => WindowArchetype.regular;
6966

70-
@override
67+
/// Modify the properties of the window.
7168
Future<void> modify({Size? size}) {
7269
throw UnimplementedError();
7370
}

0 commit comments

Comments
 (0)