betid 1.0.0 copy "betid: ^1.0.0" to clipboard
betid: ^1.0.0 copied to clipboard

A tiny, secure, unique identifier generator for Dart.

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;

Table of Contents #

  1. Installation
  2. Usage
  3. APIs
  4. License

Installation #

$ dart pub add betid

# Or if you using Flutter
$ flutter pub add betid

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);

If you want to generate a unique ID with custom alphabet.

final String customAlphabet = 'abcdefghijklmnopqrstuvwxyz_ABCDEFGHIJKLMNOPQRSTUVWXYZ-1234567890';
final String id = customAlphabet.betid();

Can you use the sized ID?

final String id = 21.betid;

APIs #

Functions #

  • betid, Parameter: size

Extensions #

  • for String type, .betid
  • for int type:
    1. .betid
    2. .customAlphabetBetid(String alphabet)

License #

BSD 3 Clause License, Copyright (c) 2022 Odroe Inc.

1
likes
130
pub points
26%
popularity

Publisher

verified publisherodroe.com

A tiny, secure, unique identifier generator for Dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on betid