copyWith method

MicroAppEvent<T> copyWith({
  1. String? name,
  2. T? payload,
  3. bool? distinct,
  4. MethodCall? methodCall,
  5. String? version,
  6. DateTime? datetime,
  7. List<String>? channels,
})

Implementation

MicroAppEvent<T> copyWith({
  String? name,
  T? payload,
  bool? distinct,
  MethodCall? methodCall,
  String? version,
  DateTime? datetime,
  List<String>? channels,
}) {
  return MicroAppEvent<T>(
      name: name ?? this.name,
      payload: payload ?? this.payload,
      distinct: distinct ?? this.distinct,
      methodCall: methodCall ?? this.methodCall,
      version: version ?? this.version,
      datetime: datetime ?? this.datetime,
      channels: channels ?? this.channels);
}