copyWith method

  1. @useResult
FTypography copyWith({
  1. FTypeface? display,
  2. FTypeface? body,
  3. Iterable<FScalableExtension>? extensions,
})

Returns a copy of this FTypography with the given properties replaced.

Implementation

@useResult
FTypography copyWith({FTypeface? display, FTypeface? body, Iterable<FScalableExtension<dynamic>>? extensions}) =>
    FTypography(
      display: display ?? this.display,
      body: body ?? this.body,
      extensions: extensions ?? _extensions.values,
    );