regexed_validator 1.0.0

  • Installing
  • Versions
  • 88

A library for Dart/Flutter developers. Regexed Validator at For validating:

  • phone
  • name
  • postalCode
  • email
  • url
  • currency
  • ip
  • date
  • time
  • htmlTags
  • password
  • creditCard

Usage #

Usage is pretty simple just pass a phone, date, email... to its validation method, see the example below

import 'package:regexed_validator/regexed_validator.dart';

main() {'');
      '<span id="foo" class="bar">Some text</span>\n'
      '<hr />');

1.0.0 #

  • Initial version, created with basic yet functional phone, name, postalCode, email, url, currency, ip, date, time, htmlTags, password, and creditCard validation.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  regexed_validator: ^1.0.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:regexed_validator/regexed_validator.dart';
Version Uploaded Documentation Archive
1.0.2 Nov 23, 2018 Go to the documentation of regexed_validator 1.0.2 Download regexed_validator 1.0.2 archive
1.0.1 Nov 21, 2018 Go to the documentation of regexed_validator 1.0.1 Download regexed_validator 1.0.1 archive
1.0.0 Nov 21, 2018 Go to the documentation of regexed_validator 1.0.0 Download regexed_validator 1.0.0 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on May 8, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.3.0
  • pana: 0.12.15


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:regexed_validator/regexed_validator.dart.

Health issues and suggestions

Document public APIs. (-1 points)

2 out of 2 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Format lib/regexed_validator.dart.

Run dartfmt to format lib/regexed_validator.dart.

Format lib/src/validator_base.dart.

Run dartfmt to format lib/src/validator_base.dart.

Maintenance suggestions

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and regexed_validator.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
Dev dependencies
test ^1.0.0