copyWith method

FontOptions copyWith({
  1. String? fontFamily,
  2. FontWeight? fontWeight,
  3. FontStyle? fontShape,
  4. List<FontOptions>? fallback,
})

Utility method.

Implementation

FontOptions copyWith({
  String? fontFamily,
  FontWeight? fontWeight,
  FontStyle? fontShape,
  List<FontOptions>? fallback,
}) =>
    FontOptions(
      fontFamily: fontFamily ?? this.fontFamily,
      fontWeight: fontWeight ?? this.fontWeight,
      fontShape: fontShape ?? this.fontShape,
      fallback: fallback ?? this.fallback,
    );