bson_objectid 0.1.0 copy "bson_objectid: ^0.1.0" to clipboard
bson_objectid: ^0.1.0 copied to clipboard

Dart 1 only

BSON ObjectId implementation in Dart

example/bson_objectid_example.dart

// Copyright (c) 2016, Kwang Yul Seo. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

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);
}
0
likes
30
pub points
34%
popularity

Publisher

unverified uploader

BSON ObjectId implementation in Dart

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

More

Packages that depend on bson_objectid