created method

void created({
  1. int? at,
})

Implementation

void created({int? at}) {
  final now = at ?? DateTime.now().toUtc().millisecondsSinceEpoch;
  uuid = JRandom.generate(16);
  createdAt = now;
  updatedAt = now;
  onCreated();
}