copyWith method Null safety

JanusError copyWith(
  1. {int? errorCode,
  2. String? error,
  3. String? pluginName}
)

Implementation

JanusError copyWith({
  int? errorCode,
  String? error,
  String? pluginName,
}) {
  return JanusError(
    errorCode: errorCode ?? this.errorCode,
    error: error ?? this.error,
    pluginName: pluginName ?? this.pluginName,
  );
}