copyWith method

dynamic copyWith({
  1. required String text,
})

Make a copy of this with the new text

Implementation

copyWith({required String text}) {
  this.text = text;
}