form_guard 0.0.2 copy "form_guard: ^0.0.2" to clipboard
form_guard: ^0.0.2 copied to clipboard

A lightweight and customizable Dart form validation package for email, passwords, required fields, length checks, matching values, and more.

example/form_guard_example.dart

import 'package:form_guard/form_guard.dart';

void main() {
  final email = 'test@example.com';
  final password = 'Hello123';
  final confirmPassword = 'Hello123';

  print('Email validation: ${FormGuard.email(email)}');
  print('Password validation: ${FormGuard.password(password)}');
  print(
    'Password match validation: '
    '${FormGuard.matches(confirmPassword, password)}',
  );

  final invalidEmail = 'test';

  print('Invalid email validation: ${FormGuard.email(invalidEmail)}');
}
1
likes
160
points
119
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A lightweight and customizable Dart form validation package for email, passwords, required fields, length checks, matching values, and more.

Repository (GitHub)

License

MIT (license)

More

Packages that depend on form_guard