ObjectId.fromSeconds constructor

ObjectId.fromSeconds(
  1. int seconds
)

Generates an ObjectId instance with the seconds required

Implementation

ObjectId.fromSeconds(int seconds /* , [bool clientMode = false] */)
    : _id = createId(seconds /* , clientMode */);