ResourceRecord.fake constructor

ResourceRecord.fake(
  1. int seed
)

Shape-only record for skeleton loading, pairing with ResourceSchema.fake()'s card so the skeleton matches the real geometry.

Implementation

factory ResourceRecord.fake(int seed) {
  return ResourceRecord(
    id: seed,
    attributes: const {'title': '——————', 'subtitle': '————', 'meta': '———'},
  );
}