InputPageBlockDetails class
A collapsible block
- Inheritance
-
- Object
- TdObject
- InputPageBlock
- InputPageBlockDetails
- Available extensions
- Annotations
-
- @immutable
Constructors
-
InputPageBlockDetails({required RichText header, required List<
InputPageBlock> blocks, required bool isOpen}) -
const
Properties
-
blocks
→ List<
InputPageBlock> -
blocks Block contents
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- header → RichText
-
header Always visible heading for the block
final
- isOpen → bool
-
isOpen True, if the block is open by default
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{RichText? header, List< InputPageBlock> ? blocks, bool? isOpen}) → InputPageBlockDetails -
Available on InputPageBlockDetails, provided by the InputPageBlockDetailsExtensions extension
-
getConstructor(
) → String -
override
-
map<
TResult extends Object?> ({required TResult sectionHeading(InputPageBlockSectionHeading value), required TResult paragraph(InputPageBlockParagraph value), required TResult preformatted(InputPageBlockPreformatted value), required TResult thinking(InputPageBlockThinking value), required TResult divider(InputPageBlockDivider value), required TResult mathematicalExpression(InputPageBlockMathematicalExpression value), required TResult anchor(InputPageBlockAnchor value), required TResult list(InputPageBlockList value), required TResult blockQuote(InputPageBlockBlockQuote value), required TResult expandableBlockQuote(InputPageBlockExpandableBlockQuote value), required TResult pullQuote(InputPageBlockPullQuote value), required TResult animation(InputPageBlockAnimation value), required TResult audio(InputPageBlockAudio value), required TResult document(InputPageBlockDocument value), required TResult photo(InputPageBlockPhoto value), required TResult video(InputPageBlockVideo value), required TResult voiceNote(InputPageBlockVoiceNote value), required TResult collage(InputPageBlockCollage value), required TResult slideshow(InputPageBlockSlideshow value), required TResult table(InputPageBlockTable value), required TResult details(InputPageBlockDetails value), required TResult map(InputPageBlockMap value), required TResult buttonRow(InputPageBlockButtonRow value)}) → TResult -
Available on InputPageBlock, provided by the InputPageBlockExtensions extension
-
maybeMap<
TResult extends Object?> ({TResult sectionHeading(InputPageBlockSectionHeading value)?, TResult paragraph(InputPageBlockParagraph value)?, TResult preformatted(InputPageBlockPreformatted value)?, TResult thinking(InputPageBlockThinking value)?, TResult divider(InputPageBlockDivider value)?, TResult mathematicalExpression(InputPageBlockMathematicalExpression value)?, TResult anchor(InputPageBlockAnchor value)?, TResult list(InputPageBlockList value)?, TResult blockQuote(InputPageBlockBlockQuote value)?, TResult expandableBlockQuote(InputPageBlockExpandableBlockQuote value)?, TResult pullQuote(InputPageBlockPullQuote value)?, TResult animation(InputPageBlockAnimation value)?, TResult audio(InputPageBlockAudio value)?, TResult document(InputPageBlockDocument value)?, TResult photo(InputPageBlockPhoto value)?, TResult video(InputPageBlockVideo value)?, TResult voiceNote(InputPageBlockVoiceNote value)?, TResult collage(InputPageBlockCollage value)?, TResult slideshow(InputPageBlockSlideshow value)?, TResult table(InputPageBlockTable value)?, TResult details(InputPageBlockDetails value)?, TResult map(InputPageBlockMap value)?, TResult buttonRow(InputPageBlockButtonRow value)?, required TResult orElse()}) → TResult -
Available on InputPageBlock, provided by the InputPageBlockExtensions extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
Map< String, dynamic> ? json) → InputPageBlockDetails? -
Inherited by:
InputPageBlockAnchor
InputPageBlockAnimation
InputPageBlockAudio
InputPageBlockBlockQuote
InputPageBlockButtonRow
InputPageBlockCollage
InputPageBlockDetails
InputPageBlockDivider
InputPageBlockDocument
InputPageBlockExpandableBlockQuote
InputPageBlockFooter
InputPageBlockList
InputPageBlockMap
InputPageBlockMathematicalExpression
InputPageBlockParagraph
InputPageBlockPhoto
InputPageBlockPreformatted
InputPageBlockPullQuote
InputPageBlockSectionHeading
InputPageBlockSlideshow
InputPageBlockTable
InputPageBlockThinking
InputPageBlockVideo
InputPageBlockVoiceNote
override
Constants
- constructor → const String