copyWith method

  1. @override
UpdateStorySendFailed copyWith({
  1. Story? story,
  2. TdError? error,
  3. CanSendStoryResult? errorType()?,
  4. dynamic extra,
  5. int? clientId,
})
override

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

@override
UpdateStorySendFailed copyWith({
  Story? story,
  TdError? error,
  CanSendStoryResult? Function()? errorType,
  dynamic extra,
  int? clientId,
}) =>
    UpdateStorySendFailed(
      story: story ?? this.story,
      error: error ?? this.error,
      errorType: errorType != null ? errorType() : this.errorType,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );