copyWith method

FrameMessage copyWith({
  1. MessageData? data,
  2. String? origin,
})

Implementation

FrameMessage copyWith({MessageData? data, String? origin}) => FrameMessage(
      data: data ?? this.data,
      origin: origin ?? this.origin,
    );