copyWith method
UpdateStorySendFailed
copyWith({
- Story? story,
- TdError? error,
- CanSendStoryResult? errorType()?,
- dynamic extra,
- 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,
);