Last updated:
0 purchases
galileo bson objectid
bson_objectid #
BSON ObjectId implementation in Dart.
This package allows you to create and parse ObjectIds without
a reference to the mongodb or bson packages.
Example #
import 'package:bson_objectid/bson_objectid.dart';
main() {
ObjectId id1 = new ObjectId();
print(id1.toHexString());
ObjectId id2 = new ObjectId.fromHexString('54495ad94c934721ede76d90');
print(id2.timestamp);
print(id2.machineId);
print(id2.processId);
print(id2.counter);
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.