transfer static method
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,
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,
);
}