ReportCategoryOption class final
A category the user can choose in the report form.
- Annotations
Constructors
- ReportCategoryOption({required String code, required String label, String? description})
-
Creates a category.
codemust pass ReasonCategory.isValid; use the codes of the policies of the tenant, so that moderators see their titles.const
Properties
- code → String
-
Code sent as ReportRequest.reasonCategory, e.g. ReasonCategory.spam.
final
- description → String?
-
Optional explanation below the label.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- label → String
-
What the user sees, in the language of the app.
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
defaults(
LimeniaUiStrings strings) → List< ReportCategoryOption> -
The default categories (ReasonCategory.defaults) with the labels of
strings(LimeniaUiStrings.categoryLabels).