fetchedAt property
latefinal
Timestamp of when complete data was last fetched from the server.
null: Only partial/basic information is available (e.g., name + ID from a list page)non-null: Complete details have been fetched (e.g., full profile from detail page)
Use this field to:
- Determine if a detail fetch is needed (null = need to fetch)
- Implement cache expiration (old timestamp = stale, re-fetch)
Implementation
@override
late final GeneratedColumn<DateTime> fetchedAt = GeneratedColumn<DateTime>(
'fetched_at',
aliasedName,
true,
type: DriftSqlType.dateTime,
requiredDuringInsert: false,
);