copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
InputRichMessage copyWith({
RichMessageSource? source,
bool? isRtl,
bool? detectAutomaticBlocks,
}) => InputRichMessage(
source: source ?? this.source,
isRtl: isRtl ?? this.isRtl,
detectAutomaticBlocks: detectAutomaticBlocks ?? this.detectAutomaticBlocks,
);