copyWith method

LayoutHints copyWith({
  1. double? bigOpHeightHint,
  2. double? maxLineWidth,
  3. bool? lineBreakingEnabled,
})

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

Implementation

LayoutHints copyWith({
  double? bigOpHeightHint,
  double? maxLineWidth,
  bool? lineBreakingEnabled,
}) {
  return LayoutHints(
    bigOpHeightHint: bigOpHeightHint ?? this.bigOpHeightHint,
    maxLineWidth: maxLineWidth ?? this.maxLineWidth,
    lineBreakingEnabled: lineBreakingEnabled ?? this.lineBreakingEnabled,
  );
}