copyWith method

MessageLog copyWith({
  1. String? id,
  2. String? message,
  3. Map<String, dynamic>? data,
})

Creates a copy of this object but replacing the old values with the new values, if any.

Implementation

MessageLog copyWith({
  String? id,
  String? message,
  Map<String, dynamic>? data,
}) =>
    MessageLog(
      id: id ?? this.id,
      message: message ?? this.message,
      data: data ?? this.data,
    );