copyWith method
DraftMessageContentVideoNote
copyWith({
- String? filePath,
- int? duration,
- int? length,
- MessageSelfDestructType? selfDestructType()?,
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
DraftMessageContentVideoNote copyWith({
String? filePath,
int? duration,
int? length,
MessageSelfDestructType? Function()? selfDestructType,
}) => DraftMessageContentVideoNote(
filePath: filePath ?? this.filePath,
duration: duration ?? this.duration,
length: length ?? this.length,
selfDestructType: selfDestructType != null
? selfDestructType()
: this.selfDestructType,
);