copyWith method

LineTheme copyWith(
  1. {TextStyle textStyle,
  2. EdgeInsets padding}
)

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

Implementation

LineTheme copyWith({TextStyle textStyle, EdgeInsets padding}) {
  return LineTheme(
    textStyle: textStyle ?? this.textStyle,
    padding: padding ?? this.padding,
  );
}