items property
final
A list of the items to be displayed in the system context menu.
When passed, items will be shown regardless of the state of text input. For example, IOSSystemContextMenuItemCopy will produce a copy button even when there is no selection to copy. Use EditableTextState and/or the result of getDefaultItems to add and remove items based on the state of the input.
Defaults to the result of getDefaultItems.
To add custom menu items, pass IOSSystemContextMenuItemCustom instances in the items list. Each custom item requires a title and an onPressed callback.
See also:
- IOSSystemContextMenuItemCustom, which creates custom menu items.
Implementation
final List<IOSSystemContextMenuItem> items;