dart_objectid 源码

fabulous932 1 0 ZIP 2021-03-22 12:03:16

对象编号 Dart语言的快速,跨平台ObjectId实现! 为什么要这个包? :rocket: 快速地。 :mobile_phone: 跨平台。 :test_tube: 经过测试。 :ledger: 满足。 :memo: 记录下来。 入门。 依靠它。 dependencies : objectid : 2.0.0-nullsafety.0 玩吧! final id = ObjectId (); // That's all :fire::face_with_open_mouth:! print (id.hexString); // it's working! => 5f52c805df41c9df948e6135 文献资料 ObjectId() 根据当前时间戳,进程唯一性和计数器创建ObjectId实例。 有关更多信息,请查看。 /// Creates ObjectId instance. final id = ObjectId (); print (id.hexString); // =>

用户评论
请输入评论内容
评分:
暂无评论