crossplat_objectid 2.1.4
crossplat_objectid: ^2.1.4

Dart native js
Flutter Android iOS web

Cross-platform BSON ObjectId implementation in Dart. Use it to generate or parse MongoDB ObjectIDs on server, web or Flutter.

bson_objectid #

Build Status

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);
}
3
likes
110
pub points
87%
popularity

Cross-platform BSON ObjectId implementation in Dart. Use it to generate or parse MongoDB ObjectIDs on server, web or Flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

tejainece@gmail.com

License

BSD (LICENSE)

More

Packages that depend on crossplat_objectid