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