Flutter II Package

Epitech Scool project, the goal is to create a package that can be used in another project

Features

Validators

  • IsValidName(String str) : If name contains only digits, return false, otherwise true
  • IsValidEmail(String str) : If email doesn't contains '@', return false, otherwise true
  • IsValidPassword(String str) : If name length <= 4, return false, otherwise true

Getting started

In terminal type :

flutter pub get flutteriipackage

Usage

import 'package:flutter_pkg/flutter_pkg.dart';

final validator = Validators();
validator.isValidEmail('test@test.com');

Test

flutter test test/package_test.dart

Libraries

flutter_ii_package_epitech_zhiwen
validators