Simple, random string generator for Dart

Overview

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,
})
{...}

basic usage

import 'package:randomstring_dart/randomstring_dart.dart';

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

print(result);
// 10 characters
// 3E_ire7CB1

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

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

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

License

MIT

You might also like...

This project follows the Reso Coder course for flutter test-driven-development with clean architecture and BloC state management for a random trivia simple app.

This project follows the Reso Coder course for flutter test-driven-development with clean architecture and BloC state management for a random trivia simple app.

Jan 5, 2022

A Flutter example about simple authentication with Auth0 and generate random QR code.

A Flutter example about simple authentication with Auth0 and generate random QR code.

ryougoku This is Flutter example about simple authentication with Auth0 and generate random QR code. Environment setup Use need to create a .env.devel

Sep 24, 2022

A simple flutter application using #clean_architecture to generate random quotes using from #api

flutter_random_quotes_app_wth_clean_architecture A new Flutter project. Getting Started Project Structure ├── assets | ├── images | ├── 1x

Oct 4, 2022

Flutter package to create list of radio button, by providing a list of objects it can be a String list or list of Map.

Flutter package to create list of radio button, by providing a list of objects it can be a String list or list of Map.

Custom Radio Group List Flutter package to create list of radio button, by providing a list of objects it can be a String list or list of Map. Feature

Nov 30, 2021

Zooper flutter encoding utf16 - Helper classes to encode and decode UTF16 string to List

zooper_flutter_encoding_utf16 Helper classes to encode and decode UTF16 string t

Feb 10, 2022

This is a Flutter plugin that takes a JSON string and converts it onto a customizable Flutter Widget.

This is a Flutter plugin that takes a JSON string and converts it onto a customizable Flutter Widget.

Colored JSON Convert JSON string into customizable widget. Getting Started ColoredJson is a stateless widget that produces a structured view of JSON s

May 20, 2022

Flutter plugin which helps you to find links in String using NSDataDetector and Linkify

Flutter plugin which helps you to find links in String using NSDataDetector and Linkify

Flutter's Native Linkify native_linkify is a Flutter plugin. Use it to find links in plain-text. The plugin uses NSDataDetector for iOS and macOS; Lin

Nov 29, 2022

random_nickname is a Dart package that provides random nickname.

random_nickname random_nickname is a Dart package that provides random nickname. Features Available Language Data Korean Noun animal Adjective emotion

Oct 12, 2022

This is a simple Gantt chart generator written as Dart command line tool.

This is a simple Gantt chart generator written as Dart command line tool.

Gantt Chart Generator This is a simple Gantt chart generator written as Dart command line tool. Currently the tool generates an HTML/CSS Gantt chart.

Apr 26, 2022
Releases(v0.0.2)
Owner
Yasin TUNCEL
Yasin TUNCEL
The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!

SwiftGen SwiftGen is a tool to automatically generate Swift code for resources of your projects (like images, localised strings, etc), to make them ty

null 8.3k Dec 31, 2022
A string generator that helps to implement real-time editing of an ordered sequence.

About A string generator that helps to implement real-time editing of an ordered sequence. It makes reordering, sorting, and interleaving transactions

Minsik Kim 3 May 15, 2022
FavoriteWords - Random Names Generator Built With Flutter

favorite words The user can select and unselect names, saving the best ones. The

Gülsen Keskin 2 Sep 17, 2022
Aditya 93 Dec 25, 2022
Startup-Name-Generator-App-in-Flutter - Business Startup Name Generator App in Flutter

Business Startup Name Generator App #About APP: A simple mobile app that generat

AHSAN SIDDZ 0 Jan 30, 2022
Simple flutter package to load and search string.

flutter_text_viewer flutter_text_viewer is a simple text viewer package to load and search text from assets,file. Demo Features Load text from assets/

Kunchok Tashi 3 Dec 15, 2022
A Dart package that constantly writes a string to an IOSink, simillarly to the UNIX yes utility.

yes A Dart package that constantly writes a string to an IOSink, simillarly to the UNIX yes utility. Usage // Write to stdout for 5 seconds. final con

null 0 Sep 22, 2022
Dart duration iso parser - Package to parse duration from ISO 8601 string

duration_iso_parser Package for parsing ISO 8601 durations string to the Duratio

Innim 1 Jan 18, 2022
Given a JSON string, this library will generate all the necessary Dart classes to parse and generate JSON.

JSON to Dart Given a JSON string, this library will generate all the necessary Dart classes to parse and generate JSON. This library is designed to ge

Javier Lecuona 1.2k Dec 25, 2022
Imports resource files as string or binary literals in Dart code.

resource_importer Imports resource files as string or binary literals in Dart code. What? resource_importer probably is best described with an example

James D. Lin 0 Dec 3, 2022