MenuConfig class

Behavioural and visual configuration for a Menu widget.

Controls the trigger bar's appearance (colour, corner radius, border, padding) as well as search behaviour:

  • searchable — when true, the trigger bar becomes a text field on open so the user can type to search.
  • enableFilter — live-filter the item list as the user types.
  • enableSearch — highlight the best match as the user types (without removing non-matching items).
  • filterCallback / searchCallback — optional custom logic for filtering and highlighting. When omitted, a case-insensitive substring match is used.
MenuConfig(
  searchable: true,
  enableFilter: true,
  borderRadius: BorderRadius.circular(8),
)

Constructors

const

Properties

backgroundColour Colour
final
border Border
final
borderRadius BorderRadius
final
enableFilter bool
final
enableSearch bool
final
filterCallback MenuFilterCallback?
final
hashCode int
The hash code for this object.
no setterinherited
padding EdgeInsetsGeometry
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchable bool
final
searchCallback MenuSearchCallback?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited