crossplat_objectid 2.1.4 copy "crossplat_objectid: ^2.1.4" to clipboard
crossplat_objectid: ^2.1.4 copied to clipboard

outdated

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

example/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:crossplat_objectid/crossplat_objectid.dart';

main() {
  ObjectId id1 = ObjectId();
  print(id1.toHexString());

  ObjectId id2 = ObjectId.fromHexString('54495ad94c934721ede76d90');
  print(id2.timestamp);
  print(id2.machineId);
  print(id2.processId);
  print(id2.counter);
}
7
likes
40
pub points
77%
popularity

Publisher

unverified uploader

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

License

BSD-3-Clause (license)

More

Packages that depend on crossplat_objectid