kind property

ContextMenuButtonKind get kind

The kind of button this represents.

If created with type, this returns the corresponding ContextMenuButtonKind. Defaults to ContextMenuButtonKind.custom if neither kind nor type was specified.

Implementation

ContextMenuButtonKind get kind {
  if (_kind != null) {
    return _kind;
  }
  if (_type != null) {
    return ContextMenuButtonKind._fromLegacyType(_type);
  }
  return ContextMenuButtonKind.custom;
}