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

The library for creating generator function that does auto increment value

example/main.dart

import 'dart:developer';

import 'package:lil_auto_increment/lil_auto_increment.dart';

void main() {
  final Id nextId1 = autoIncrement();
  final Id nextId2 = autoIncrement();

  for (int i = 0; i < 5; i++) {
    log(nextId1().toString(), name: 'nextId1');
  }
  for (int i = 0; i < 5; i++) {
    log(nextId2().toString(), name: 'nextId2');
  }
  for (int i = 0; i < 5; i++) {
    log(nextId1().toString(), name: 'nextId1');
  }
}
2
likes
160
points
31
downloads

Publisher

unverified uploader

Weekly Downloads

The library for creating generator function that does auto increment value

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on lil_auto_increment