1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! Flutter counterpart: the `ContextMenu.showSystemContextMenu` /
//! `hideSystemContextMenu` payloads on `SystemChannels.platform`.
//!
//! Lives here because [`crate::Platform`] names these types.
/// A button to show in the system-rendered context menu.
///
/// Flutter serializes this as the `items` list of `ContextMenu.showSystemContextMenu`.
/// Built-in kinds have no callback: the platform performs the action (on iOS, against
/// the active text input). [`Custom`](Self::Custom) is invoked through
/// [`crate::EmbedderClient::custom_context_menu_action`].