Unverified Commit 9f856ac1 authored by Jonas Uekötter's avatar Jonas Uekötter Committed by GitHub

Improve PlatformMenu `MenuItem` documentation (#104321)

parent e8995736
......@@ -169,13 +169,13 @@ abstract class MenuItem with Diagnosticable {
/// Returns a callback, if any, to be invoked if the platform menu receives a
/// "Menu.opened" method call from the platform for this item.
///
/// Only items that have submenus will have this callback invokes
/// Only items that have submenus will have this callback invoked.
///
/// The default implementation returns null.
VoidCallback? get onOpen => null;
/// Returns a callback, if any, to be invoked if the platform menu receives a
/// "Menu.opened" method call from the platform for this item.
/// "Menu.closed" method call from the platform for this item.
///
/// Only items that have submenus will have this callback invoked.
///
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment