randomstring_dart

Last updated:

0 purchases

randomstring_dart Image
randomstring_dart Images
Add to Cart

Description:

randomstring dart

Simple Random String #
Simple, random string generator
Features #

Lower characters
Upper characters
Numbers
Customizable special characters
Repeatable or not, special characters

options and defaults #
String getRandomString({
int lowersCount = 3,
int uppersCount = 3,
int numbersCount = 3,
int specialsCount = 1,
String specials = '_',
bool canSpecialRepeat = true,
})
{...}

copied to clipboard
basic usage #
import 'package:randomstring_dart/randomstring_dart.dart';

final rs = RandomString();
String result = rs.getRandomString();

print(result);
// 10 characters
// 3E_ire7CB1
copied to clipboard
options #
import 'package:randomstring_dart/randomstring_dart.dart';

final rs = RandomString();
String result = rs.getRandomString(
uppersCount: 10,
lowersCount: 10,
numbersCount: 10,
specialsCount: 2,
specials: '_-=!=',
);

print(result);
// 32 characters
// 78QW1_kJGgpCkg0Dm17SH0ycgCS9=7l0
copied to clipboard
special not repeat #
import 'package:randomstring_dart/randomstring_dart.dart';

final rs = RandomString();
String result = rs.getRandomString(
specialsCount: 4,
canSpecialRepeat: false,
specials: '_-!.'
);

print(result);
// output: 4-d13.M_gDz!Z
copied to clipboard

|NOTE|
if all options are set to 0 then the output will be 'yoo'
License #
MIT

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.