copyWith method

TerminalStyle copyWith({
  1. double? fontSize,
  2. double? height,
  3. String? fontFamily,
  4. List<String>? fontFamilyFallback,
})

Implementation

TerminalStyle copyWith({
  double? fontSize,
  double? height,
  String? fontFamily,
  List<String>? fontFamilyFallback,
}) {
  return TerminalStyle(
    fontSize: fontSize ?? this.fontSize,
    height: height ?? this.height,
    fontFamily: fontFamily ?? this.fontFamily,
    fontFamilyFallback: fontFamilyFallback ?? this.fontFamilyFallback,
  );
}