LimeniaAppealForm class

A form for a complaint against a decision (Art. 20 DSA), for the affected user and for reporters alike. It shows what the complaint is about, that it is possible for six months, free of charge and reviewed by a person, and takes the reasons of the user. It never sends anything itself: it calls onSubmit and shows the AppealResult it returns.

showLimeniaAppealSheet shows it in a bottom sheet. To embed it in a page, put it in a scroll view: it is as tall as its content.

The text is checked with validateAppeal of package:limenia: required and at most AppealLimits.textLength characters (Unicode code points), never stricter than Limenia. Whether the complaint is admissible only Limenia knows; the form shows its answer (appeal_window_closed, appeal_already_open, appeal_not_allowed, reporter_suspended).

Inheritance

Constructors

LimeniaAppealForm({Key? key, required Future<AppealResult> onSubmit(String text), AppealTopic? topic, String? title, LimeniaUiStrings? strings, ValueChanged<AppealResult>? onResult, VoidCallback? onClose})
Creates the form.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onClose → VoidCallback?
Called by the close button. Without it there is none, and the result stays on screen.
final
onResult → ValueChanged<AppealResult>?
Called with every result of onSubmit.
final
onSubmit → Future<AppealResult> Function(String text)
Sends the complaint with the text as entered, usually with Limenia.appeal, and returns its result. If it throws, the form shows a failure with "Try again" and reports the error to FlutterError.reportError.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strings → LimeniaUiStrings?
Texts of the form. Null for LimeniaUiStrings.of.
final
title → String?
Title of the form, LimeniaUiStrings.appealTitle by default.
final
topic → AppealTopic?
What the complaint is about. Null shows no summary.
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<LimeniaAppealForm>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

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