type property

ContextMenuButtonType get type

The type of button this represents.

Prefer using kind instead.

Kinds that have no equivalent ContextMenuButtonType, such as ContextMenuButtonKind.translate, are reported as ContextMenuButtonType.custom.

Implementation

ContextMenuButtonType get type => _type ?? kind._legacyType;