represents method

  1. @override
bool represents(
  1. void value
)
override

Whether this entry represents a particular value.

This method is used by showMenu, when it is called, to align the entry representing the initialValue, if any, to the given position, and then later is called on each entry to determine if it should be highlighted (if the method returns true, the entry will have its background color set to the ambient ThemeData.highlightColor). If initialValue is null, then this method is not called.

If the PopupMenuEntry represents a single value, this should return true if the argument matches that value. If it represents multiple values, it should return true if the argument matches any of them.

Implementation

@override
bool represents(void value) => false;