Skip to content

Instantly share code, notes, and snippets.

@codeBelt
codeBelt / docs.md
Last active October 13, 2023 13:13
Firestore rules function examples
@roipeker
roipeker / form_utils.dart
Last active October 27, 2023 12:51
TextField concept for GetX (WIP) ...
/// copyright 2020, roipeker
class FormValidations {
static String email(String val) {
val = val.trim();
if (val.isEmpty) return 'Email cant be empty';
if (val.length <= 4) return 'Email is too short';
if (!val.isEmail) return 'Invalid email';
return null;
}