copyWith method

  1. @override
MdBlockQuote copyWith({
  1. TextStyle? blockquote,
  2. BoxDecoration? blockquoteDecoration,
  3. EdgeInsets? blockquotePadding,
  4. EdgeInsets? blockquoteContentPadding,
})
override

Creates a copy of this spec with the given fields replaced by the non-null parameter values.

Implementation

@override
MdBlockQuote copyWith({
  TextStyle? blockquote,
  BoxDecoration? blockquoteDecoration,
  EdgeInsets? blockquotePadding,
  EdgeInsets? blockquoteContentPadding,
}) {
  return MdBlockQuote(
    blockquote: blockquote ?? this.blockquote,
    blockquoteDecoration: blockquoteDecoration ?? this.blockquoteDecoration,
    blockquotePadding: blockquotePadding ?? this.blockquotePadding,
    blockquoteContentPadding:
        blockquoteContentPadding ?? this.blockquoteContentPadding,
  );
}