copyWith method

BlocklistRow copyWith({
  1. String? userId,
  2. Value<String?> reason = const Value.absent(),
  3. PreciseDateTime? at,
  4. Value<String?> cursor = const Value.absent(),
})

Implementation

BlocklistRow copyWith(
        {String? userId,
        Value<String?> reason = const Value.absent(),
        PreciseDateTime? at,
        Value<String?> cursor = const Value.absent()}) =>
    BlocklistRow(
      userId: userId ?? this.userId,
      reason: reason.present ? reason.value : this.reason,
      at: at ?? this.at,
      cursor: cursor.present ? cursor.value : this.cursor,
    );