id property

Object? id
getter/setter pair

Set a unique ID for the menu widget.

Prevents key from being changed when PlutoMenuItem is created in the build method.

When PlutoMenuItem is created in State.initState, etc., there is no need to set id because key does not change even if build is called multiple times.

Implementation

Object? id;