copyWith method

TextOptions copyWith({
  1. String? text,
  2. TextAlign? textAlign,
  3. TextStyle? style,
})

Implementation

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