Skip to content

Commit 9f856ac

Browse files
authored
Improve PlatformMenu MenuItem documentation (#104321)
1 parent e899573 commit 9f856ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,13 @@ abstract class MenuItem with Diagnosticable {
169169
/// Returns a callback, if any, to be invoked if the platform menu receives a
170170
/// "Menu.opened" method call from the platform for this item.
171171
///
172-
/// Only items that have submenus will have this callback invokes
172+
/// Only items that have submenus will have this callback invoked.
173173
///
174174
/// The default implementation returns null.
175175
VoidCallback? get onOpen => null;
176176

177177
/// Returns a callback, if any, to be invoked if the platform menu receives a
178-
/// "Menu.opened" method call from the platform for this item.
178+
/// "Menu.closed" method call from the platform for this item.
179179
///
180180
/// Only items that have submenus will have this callback invoked.
181181
///

0 commit comments

Comments
 (0)