copyWith method

CreateCall copyWith({
  1. int? userId,
  2. CallProtocol? protocol,
  3. bool? isVideo,
})

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

Implementation

CreateCall copyWith({int? userId, CallProtocol? protocol, bool? isVideo}) =>
    CreateCall(
      userId: userId ?? this.userId,
      protocol: protocol ?? this.protocol,
      isVideo: isVideo ?? this.isVideo,
    );