id_gen 0.1.0 copy "id_gen: ^0.1.0" to clipboard
id_gen: ^0.1.0 copied to clipboard

A standartized set of IDs generators.

example/id_gen_example.dart

// ignore_for_file: avoid_print

import 'package:id_gen/id_gen.dart';

void main() {
  // generate random UUIDs
  {
    const gen = UuidV4Gen();
    for (var i = 0; i < 4; ++i) {
      print(gen.get());
    }
  }

  // generate HID from Ukrainian
  {
    const gen = HumanIdGen(options: HumanIdGenOptions(lowerCase: true));
    final hid = gen.get('Тема статті чи назва курсу');
    print(hid);
  }
}
4
likes
0
pub points
49%
popularity

Publisher

verified publishersyrokomskyi.com

A standartized set of IDs generators.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

test, uuid

More

Packages that depend on id_gen