copyWith method

Typography copyWith ({TextTheme black, TextTheme white, TextTheme englishLike, TextTheme dense, TextTheme tall })

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

Implementation

Typography copyWith({
  TextTheme black,
  TextTheme white,
  TextTheme englishLike,
  TextTheme dense,
  TextTheme tall,
}) {
  return Typography(
    black: black ?? this.black,
    white: white ?? this.white,
    englishLike: englishLike ?? this.englishLike,
    dense: dense ?? this.dense,
    tall: tall ?? this.tall,
  );
}