tsid_dart 0.1.4
tsid_dart: ^0.1.4 copied to clipboard
A TSID Port for Dart libraries or applications. it probably possible to run on any platform, however it was tested on macos and web only.
import 'package:tsid_dart/tsid_dart.dart';
void main() {
final tsid = Tsid.getTsid();
final parsed = Tsid.fromString(tsid.toString());
final fromFactory = TsidFactory().create();
print('Generated : ${tsid.toString()}');
print('As number : ${tsid.toLong()}');
print('Parsed ok : ${parsed == tsid}');
print('Factory : ${fromFactory.toString()}');
}