transfer static method

CoffrifyTransfer transfer({
  1. String? id,
  2. String? shortCode,
  3. String? workspaceId,
  4. String? userId,
  5. DateTime? createdAt,
  6. DateTime? expiresAt,
  7. String? status,
  8. bool? isPasswordProtected,
  9. int? maxDownloads,
  10. int? totalDownloads,
  11. bool? watermarkEnabled,
  12. bool burnAfterRead = false,
  13. String? transferTitle,
  14. String? notes,
  15. String? scanStatus,
  16. List<CoffrifyFile>? files,
})

Build a CoffrifyTransfer with overridable fields.

Implementation

static CoffrifyTransfer transfer({
  String? id,
  String? shortCode,
  String? workspaceId,
  String? userId,
  DateTime? createdAt,
  DateTime? expiresAt,
  String? status,
  bool? isPasswordProtected,
  int? maxDownloads,
  int? totalDownloads,
  bool? watermarkEnabled,
  bool burnAfterRead = false,
  String? transferTitle,
  String? notes,
  String? scanStatus,
  List<CoffrifyFile>? files,
}) {
  final n = ++_seq;
  return CoffrifyTransfer(
    id: id ?? 'tr_test_${_pad(n)}',
    shortCode: shortCode ?? 'fixt${_pad(n)}',
    workspaceId: workspaceId ?? 'ws_fixture',
    userId: userId,
    createdAt: createdAt ?? DateTime(2026, 5, 1, 12),
    expiresAt: expiresAt ?? DateTime(2026, 5, 8, 12),
    status: status ?? 'active',
    isPasswordProtected: isPasswordProtected ?? false,
    maxDownloads: maxDownloads,
    totalDownloads: totalDownloads ?? 0,
    watermarkEnabled: watermarkEnabled ?? false,
    burnAfterRead: burnAfterRead,
    transferTitle: transferTitle,
    notes: notes,
    scanStatus: scanStatus ?? 'clean',
    files: files,
  );
}