copyWith method

BlockTheme copyWith(
  1. {TextStyle textStyle,
  2. EdgeInsets padding,
  3. bool inheritLineTextStyle,
  4. EdgeInsets linePadding}

Creates a copy of this theme but with the given fields replaced with the new values.


BlockTheme copyWith({
  TextStyle textStyle,
  EdgeInsets padding,
  bool inheritLineTextStyle,
  EdgeInsets linePadding,
}) {
  return BlockTheme(
    textStyle: textStyle ?? this.textStyle,
    inheritLineTextStyle: inheritLineTextStyle ?? this.inheritLineTextStyle,
    padding: padding ?? this.padding,
    linePadding: linePadding ?? this.linePadding,