copyWith method
LineMetrics
copyWith({
- LyricLine? line,
- double? height,
- double? width,
- double? activeWidth,
- double? activeHeight,
- double? translationWidth,
- double? translationHeight,
- List<
LineMetrics> ? activeMetrics, - List<
LineMetrics> ? metrics, - TextPainter? textPainter,
- TextPainter? activeTextPainter,
- TextPainter? translationTextPainter,
- List<
WordMetrics> ? words,
Implementation
LineMetrics copyWith({
LyricLine? line,
double? height,
double? width,
double? activeWidth,
double? activeHeight,
double? translationWidth,
double? translationHeight,
List<ui.LineMetrics>? activeMetrics,
List<ui.LineMetrics>? metrics,
TextPainter? textPainter,
TextPainter? activeTextPainter,
TextPainter? translationTextPainter,
List<WordMetrics>? words,
}) {
return LineMetrics(
line: line ?? this.line,
height: height ?? this.height,
width: width ?? this.width,
activeWidth: activeWidth ?? this.activeWidth,
activeHeight: activeHeight ?? this.activeHeight,
translationWidth: translationWidth ?? this.translationWidth,
translationHeight: translationHeight ?? this.translationHeight,
activeMetrics: activeMetrics ?? this.activeMetrics,
metrics: metrics ?? this.metrics,
textPainter: textPainter ?? this.textPainter,
activeTextPainter: activeTextPainter ?? this.activeTextPainter,
translationTextPainter:
translationTextPainter ?? this.translationTextPainter,
words: words ?? this.words,
);
}