Improve PlatformMenu MenuItem documentation (#104321)

This commit is contained in:
Jonas Uekötter 2022-05-25 23:43:12 +02:00 committed by GitHub
parent e8995736bf
commit 9f856ac182
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.
///