map<TResult extends Object?> method
TResult
map<TResult extends Object?>({
- required TResult sectionHeading(),
- required TResult paragraph(
- InputPageBlockParagraph value
- required TResult preformatted(),
- required TResult thinking(
- InputPageBlockThinking value
- required TResult divider(
- InputPageBlockDivider value
- required TResult mathematicalExpression(),
- required TResult anchor(
- InputPageBlockAnchor value
- required TResult list(
- InputPageBlockList value
- required TResult blockQuote(
- InputPageBlockBlockQuote value
- required TResult expandableBlockQuote(),
- 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
Implementation
TResult map<TResult extends Object?>({
required TResult Function(InputPageBlockSectionHeading value)
sectionHeading,
required TResult Function(InputPageBlockParagraph value) paragraph,
required TResult Function(InputPageBlockPreformatted value) preformatted,
required TResult Function(InputPageBlockFooter value) footer,
required TResult Function(InputPageBlockThinking value) thinking,
required TResult Function(InputPageBlockDivider value) divider,
required TResult Function(InputPageBlockMathematicalExpression value)
mathematicalExpression,
required TResult Function(InputPageBlockAnchor value) anchor,
required TResult Function(InputPageBlockList value) list,
required TResult Function(InputPageBlockBlockQuote value) blockQuote,
required TResult Function(InputPageBlockExpandableBlockQuote value)
expandableBlockQuote,
required TResult Function(InputPageBlockPullQuote value) pullQuote,
required TResult Function(InputPageBlockAnimation value) animation,
required TResult Function(InputPageBlockAudio value) audio,
required TResult Function(InputPageBlockDocument value) document,
required TResult Function(InputPageBlockPhoto value) photo,
required TResult Function(InputPageBlockVideo value) video,
required TResult Function(InputPageBlockVoiceNote value) voiceNote,
required TResult Function(InputPageBlockCollage value) collage,
required TResult Function(InputPageBlockSlideshow value) slideshow,
required TResult Function(InputPageBlockTable value) table,
required TResult Function(InputPageBlockDetails value) details,
required TResult Function(InputPageBlockMap value) map,
required TResult Function(InputPageBlockButtonRow value) buttonRow,
}) {
switch (getConstructor()) {
case InputPageBlockSectionHeading.constructor:
return sectionHeading.call(this as InputPageBlockSectionHeading);
case InputPageBlockParagraph.constructor:
return paragraph.call(this as InputPageBlockParagraph);
case InputPageBlockPreformatted.constructor:
return preformatted.call(this as InputPageBlockPreformatted);
case InputPageBlockFooter.constructor:
return footer.call(this as InputPageBlockFooter);
case InputPageBlockThinking.constructor:
return thinking.call(this as InputPageBlockThinking);
case InputPageBlockDivider.constructor:
return divider.call(this as InputPageBlockDivider);
case InputPageBlockMathematicalExpression.constructor:
return mathematicalExpression
.call(this as InputPageBlockMathematicalExpression);
case InputPageBlockAnchor.constructor:
return anchor.call(this as InputPageBlockAnchor);
case InputPageBlockList.constructor:
return list.call(this as InputPageBlockList);
case InputPageBlockBlockQuote.constructor:
return blockQuote.call(this as InputPageBlockBlockQuote);
case InputPageBlockExpandableBlockQuote.constructor:
return expandableBlockQuote
.call(this as InputPageBlockExpandableBlockQuote);
case InputPageBlockPullQuote.constructor:
return pullQuote.call(this as InputPageBlockPullQuote);
case InputPageBlockAnimation.constructor:
return animation.call(this as InputPageBlockAnimation);
case InputPageBlockAudio.constructor:
return audio.call(this as InputPageBlockAudio);
case InputPageBlockDocument.constructor:
return document.call(this as InputPageBlockDocument);
case InputPageBlockPhoto.constructor:
return photo.call(this as InputPageBlockPhoto);
case InputPageBlockVideo.constructor:
return video.call(this as InputPageBlockVideo);
case InputPageBlockVoiceNote.constructor:
return voiceNote.call(this as InputPageBlockVoiceNote);
case InputPageBlockCollage.constructor:
return collage.call(this as InputPageBlockCollage);
case InputPageBlockSlideshow.constructor:
return slideshow.call(this as InputPageBlockSlideshow);
case InputPageBlockTable.constructor:
return table.call(this as InputPageBlockTable);
case InputPageBlockDetails.constructor:
return details.call(this as InputPageBlockDetails);
case InputPageBlockMap.constructor:
return map.call(this as InputPageBlockMap);
case InputPageBlockButtonRow.constructor:
return buttonRow.call(this as InputPageBlockButtonRow);
}
throw StateError('not handled type Generator');
}