Skip to main content

DescriptionTextWidget class

This class sets up the post page.

To implement the "show less" and "show more" functions for the text, we divide the text into two parts: firstHalf and secondHalf. A flag is set to track whether to display either the firstHalf or both(the entire text).

Inheritance

: - Object

Available extensions

: - AnimateWidgetExtensions

Constructors

[DescriptionTextWidget][]

: ::: const :::

Properties

[hashCode] [→ int] : The hash code for this object. ::: features no setterinherited :::

[key] [→ Key?] : Controls how one widget replaces another widget in the tree. ::: features finalinherited :::

[runtimeType] [→ Type] : A representation of the runtime type of the object. ::: features no setterinherited :::

[text] [→ String] : actual description to be displayed. ::: features final :::

Methods

[animate][ [→ Animate] ]

: Available on Widget, provided by the AnimateWidgetExtensions extension

Wraps the target Widget in an Animate instance, and returns the instance for chaining calls. Ex. myWidget. is equivalent to Animate(child: myWidget).

[createElement][ [→ StatefulElement] ] : Creates a StatefulElement to manage this widget's location in the tree. ::: features inherited :::

createState [→ _DescriptionTextWidgetState ] : Creates the mutable state for this widget at a given location in the tree. ::: features override :::

[debugDescribeChildren][ [→ List[<[DiagnosticsNode]>]] ] : Returns a list of DiagnosticsNode objects describing this node's children. ::: features inherited :::

[debugFillProperties][([[DiagnosticPropertiesBuilder] properties]) → void ] : Add additional properties associated with the node. ::: features inherited :::

[noSuchMethod][([[Invocation] invocation]) → dynamic ] : Invoked when a nonexistent method or property is accessed. ::: features inherited :::

[toDiagnosticsNode][ [→ DiagnosticsNode] ] : Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. ::: features inherited :::

[toString][ [→ String] ] : A string representation of this object. ::: features inherited :::

[toStringDeep][ [→ String] ] : Returns a string representation of this node and its descendants. ::: features inherited :::

[toStringShallow][ [→ String] ] : Returns a one-line detailed description of the object. ::: features inherited :::

[toStringShort][ [→ String] ] : A short, textual description of this widget. ::: features inherited :::

Operators

[operator ==][([[Object] other]) [→ bool] ] : The equality operator. ::: features inherited :::

  1. talawa
  2. post_detailed_page
  3. DescriptionTextWidget class
post_detailed_page library