InputPageBlockPhoto class

A photo

Inheritance
Available extensions
Annotations
  • @immutable

Constructors

InputPageBlockPhoto({required InputPhoto photo, PageBlockCaption? caption, required bool hasSpoiler})
const

Properties

caption → PageBlockCaption?
caption Photo caption; pass null if none
final
hashCode → int
The hash code for this object.
no setteroverride
hasSpoiler → bool
hasSpoiler True, if the photo preview must be covered by a spoiler animation
final
photo → InputPhoto
photo The photo to be sent
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({InputPhoto? photo, PageBlockCaption? caption, bool? hasSpoiler}) → InputPageBlockPhoto

Available on InputPageBlockPhoto, provided by the InputPageBlockPhotoExtensions 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 footer(InputPageBlockFooter 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 footer(InputPageBlockFooter 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

Constants

constructor → const String