FeedbackCategoryItem class

Represents a single selectable category in the feedback form.

Use FeedbackCategoryItem.builtIns for the default set, or create custom items to replace or extend the built-in list:

FeedbackWidget(
  backend: myBackend,
  appVersion: '1.0.0',
  categories: [
    ...FeedbackCategoryItem.builtIns,
    const FeedbackCategoryItem(id: 'billing', label: 'Billing Issue'),
  ],
)

Constructors

FeedbackCategoryItem({required String id, required String label})
const

Properties

hashCode int
The hash code for this object.
no setteroverride
id String
Unique identifier stored in FeedbackEntry.category.
final
label String
Human-readable label shown in the category dropdown.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Constants

builtIns → const List<FeedbackCategoryItem>
The default built-in category list.