ReleaseEvent constructor

ReleaseEvent({
  1. required ReleaseEventType eventType,
  2. required String version,
  3. required String buildNumber,
  4. required String releaseMode,
  5. required List<String> platforms,
  6. String? commit,
  7. String? tag,
  8. String? releaseNotes,
  9. Map<String, String> artifacts = const {},
  10. String deploymentStatus = 'Unknown',
  11. String? environment,
  12. String? flavor,
  13. DateTime? timestamp,
  14. String? error,
  15. bool isPatch = false,
})

Implementation

ReleaseEvent({
  required this.eventType,
  required this.version,
  required this.buildNumber,
  required this.releaseMode,
  required this.platforms,
  this.commit,
  this.tag,
  this.releaseNotes,
  this.artifacts = const {},
  this.deploymentStatus = 'Unknown',
  this.environment,
  this.flavor,
  DateTime? timestamp,
  this.error,
  this.isPatch = false,
}) : timestamp = timestamp ?? DateTime.now().toUtc();