0 purchases
betid
Bet ID #
A tiny, secure, unique identifier generator for Dart.
EASY - Simple entry design, less necessary APIs are exposed.
FAST - Generate a unique ID in a single line of code.
SECURE - Generates a unique ID that is hard to guess.
import 'package:betid/betid.dart';
/// Generate a sized of 21 characters unique ID.
final String id = 21.betid;
copied to clipboard
Table of Contents #
Installation
Usage
APIs
License
Installation #
$ dart pub add betid
# Or if you using Flutter
$ flutter pub add betid
copied to clipboard
Usage #
Use the betid function to generate a unique ID.
final String id = betid();
/// If you want to generate a ID with size of `21` characters.
final String id2 = betid(21);
copied to clipboard
If you want to generate a unique ID with custom alphabet.
final String customAlphabet = 'abcdefghijklmnopqrstuvwxyz_ABCDEFGHIJKLMNOPQRSTUVWXYZ-1234567890';
final String id = customAlphabet.betid();
copied to clipboard
Can you use the sized ID?
final String id = 21.betid;
copied to clipboard
APIs #
Functions #
betid, Parameter: size
Extensions #
for String type, .betid
for int type:
.betid
.customAlphabetBetid(String alphabet)
License #
BSD 3 Clause License,
Copyright (c) 2022 Odroe Inc.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.