of<T> static method

CPDFContextMenuItem<T> of<T>(
  1. T key, {
  2. List<String>? subItems,
})

Creates a menu item with only a key and optional sub-items.

Implementation

static CPDFContextMenuItem<T> of<T>(T key, {List<String>? subItems}) {
  return CPDFContextMenuItem<T>(key, subItems: subItems);
}