copyWith method Null safety

Typography copyWith(
  1. {TextTheme? black,
  2. TextTheme? white,
  3. TextTheme? englishLike,
  4. TextTheme? dense,
  5. 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 ?? this.black,
    white ?? this.white,
    englishLike ?? this.englishLike,
    dense ?? this.dense,
    tall ?? this.tall,
  );
}