copyWith method

TextSticker copyWith({
  1. String? text,
  2. TextStyle? style,
  3. TextAlign? textAlign,
  4. Color? background,
})

Implementation

TextSticker copyWith({
  String? text,
  TextStyle? style,
  TextAlign? textAlign,
  Color? background,
}) {
  return TextSticker(
    text: text ?? this.text,
    style: style ?? this.style,
    textAlign: textAlign ?? this.textAlign,
    background: background ?? this.background,
  );
}