@@ -29,7 +29,7 @@ const kWindowEventLeaveFullScreen = 'leave-full-screen';
2929const kWindowEventDocked = 'docked' ;
3030const kWindowEventUndocked = 'undocked' ;
3131
32- enum DockSide { LEFT , RIGHT }
32+ enum DockSide { left, right }
3333
3434// WindowManager
3535class WindowManager {
@@ -277,16 +277,16 @@ class WindowManager {
277277 Future <DockSide ?> isDocked () async {
278278 int ? docked = await _channel.invokeMethod ('isDocked' );
279279 if (docked == 0 ) return null ;
280- if (docked == 1 ) return DockSide .LEFT ;
281- if (docked == 2 ) return DockSide .RIGHT ;
280+ if (docked == 1 ) return DockSide .left ;
281+ if (docked == 2 ) return DockSide .right ;
282282 return null ;
283283 }
284284
285285 /// Docks the window. only works on Windows
286286 Future <void > dock ({required DockSide side, required int width}) async {
287287 final Map <String , dynamic > arguments = {
288- 'left' : side == DockSide .LEFT ,
289- 'right' : side == DockSide .RIGHT ,
288+ 'left' : side == DockSide .left ,
289+ 'right' : side == DockSide .right ,
290290 'width' : width,
291291 };
292292 await _channel.invokeMethod ('dock' , arguments);
0 commit comments