copyWith method Null safety

EngineNotification copyWith(
  1. {String? type,
  2. EngineNotificationParameter? parameter,
  3. String? createdUtc,
  4. Duration? validAge}
)
inherited

Implementation

EngineNotification copyWith(
    {String? type,
    EngineNotificationParameter? parameter,
    String? createdUtc,
    Duration? validAge}) {
  return EngineNotification(
    type: type ?? this.type,
    parameter: parameter ?? this.parameter,
    createdUtc: createdUtc ?? this.createdUtc,
    validAge: validAge ?? this.validAge,
  );
}