CNPopUpButtonSection<T> class

A group of items in a CNPopUpButton menu, set apart from the other entries, with an optional title above them.

On iOS it is an inline UIMenu; on macOS a run of items between separators, under a section header (macOS 14+, a disabled item before).

Inheritance

Constructors

CNPopUpButtonSection({String? title, required List<CNPopUpButtonItem<T>> items})
Creates a section.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
items → List<CNPopUpButtonItem<T>>
The section's choices.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String?
The section's header, or null for none.
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