copyWith method
PageBlockVideo
copyWith({
- Video? video()?,
- PageBlockCaption? caption,
- bool? needAutoplay,
- bool? isLooped,
override
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
@override
PageBlockVideo copyWith({
Video? Function()? video,
PageBlockCaption? caption,
bool? needAutoplay,
bool? isLooped,
}) =>
PageBlockVideo(
video: video != null ? video() : this.video,
caption: caption ?? this.caption,
needAutoplay: needAutoplay ?? this.needAutoplay,
isLooped: isLooped ?? this.isLooped,
);