-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
C:/Users/Dammy Richie/fvm/versions/3.16.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"flutterSdkVersion": "3.16.5", | ||
"flavors": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
import 'package:qoute_app/constants/app_constants.dart'; | ||
|
||
extension StringX on String { | ||
// an extension to get a validated email on string | ||
/// an extension to get a validated email on string | ||
bool get isValidEmail => Constants.emailRegex.hasMatch(this); | ||
// an extension to get a validated name on string | ||
|
||
/// an extension to get a validated name on string | ||
bool get isValidFullName => Constants.fullNameRegex.hasMatch(this); | ||
// an extension to get a validated contact on string | ||
|
||
/// an extension to get a validated contact on string | ||
bool get isValidContact => Constants.contactRegex.hasMatch(this); | ||
|
||
// get app images | ||
/// get app images | ||
String toImage() => "assets/images/$this.png"; | ||
|
||
// get app svgs | ||
/// get app svgs | ||
String toSvg() => "assets/svgs/$this.svg"; | ||
} |