awesome flutter common utils
- checkEmailRegex
- checkPhoneNumberRegex(Korean)
- checkNickNameRegex(Korean)
- checkSMSCodeRegex
- checkPasswordRegex
- timeAgo
- thousandToK
- thousandToData
dependencies:
flutter_utils: ^<latest_version>
const result = checkEmailRegex(email: 'example@google.com');
/// return true;
const result = checkPhoneNumberRegex(phoneNumber: '01012341234');
/// return true;
/// it works only korean phone number
/// global phone number will be updated
const result = checkNickNameRegex(nickName: 'NickName', min: 2, max: 8);
/// return true;
const result = checkSMSCodeRegex(code: '123456', length: 6);
/// return true;
const result = checkPasswordRegex(password: 'Abcd1234!', min: 8, max: 20);
/// return true;
/// Upper, Lower, Number, Special Character
const result = timeAgo(dateTime: DateTime.now());
/// return 'Just now';
/// 3 seconds ago ..
/// 2 week ago
const result = thousandToK(30000);
/// return '30.0K';
const result = thousandToData(30000);
/// return DigitData(suffix: 'K', data :30.0, fraction: 1);