copyWith method

Caption copyWith({
  1. String? text,
  2. int? fontStyle,
  3. String? fontColor,
})

Implementation

Caption copyWith({
  String? text,
  int? fontStyle,
  String? fontColor,
}) =>
    Caption(
      text: text ?? this.text,
      fontStyle: fontStyle ?? this.fontStyle,
      fontColor: fontColor ?? this.fontColor,
    );