copyWith method

Data copyWith({
  1. JsonMap? notifier,
  2. String? environment,
  3. Client? client,
  4. String? platform,
  5. String? language,
  6. String? framework,
  7. String? codeVersion,
  8. Level? level,
  9. DateTime? timestamp,
  10. Body? body,
  11. User? user,
  12. JsonMap? custom,
  13. JsonMap? platformPayload,
  14. JsonMap? server,
})

Implementation

Data copyWith({
  JsonMap? notifier,
  String? environment,
  Client? client,
  String? platform,
  String? language,
  String? framework,
  String? codeVersion,
  Level? level,
  DateTime? timestamp,
  Body? body,
  User? user,
  JsonMap? custom,
  JsonMap? platformPayload,
  JsonMap? server,
}) =>
    Data(
      notifier: notifier ?? this.notifier,
      environment: environment ?? this.environment,
      client: client ?? this.client,
      platform: platform ?? this.platform,
      language: language ?? this.language,
      framework: framework ?? this.framework,
      codeVersion: codeVersion ?? this.codeVersion,
      level: level ?? this.level,
      timestamp: timestamp ?? this.timestamp,
      body: body ?? this.body,
      user: user ?? this.user,
      custom: custom ?? this.custom,
      platformPayload: platformPayload ?? this.platformPayload,
      server: server ?? this.server,
    );