commons
library
Functions
-
deleteSame(Map<String, dynamic> firstMap, Map<String, dynamic> secondMap, {List<String> ignoreKeys = const [], List<String> forceDelete = const []})
→ Map<String, dynamic>
-
this method will return a firstMap after remove all same values that match second map
-
distanceBetween(double startLatitude, double startLongitude, double endLatitude, double endLongitude)
→ double
-
return result in meter
-
emailValidation(String? value)
→ bool
-
-
getAddress()
→ String
-
-
getApplicationVersion()
→ Future<Map<String, String>>
-
keys => code, number
-
getBool()
→ bool
-
-
getColor()
→ Color
-
-
getCompanyName()
→ String
-
-
getCoordinates()
→ Map<String, double>
-
-
getDescription()
→ String
-
-
getDeviceName()
→ Future<String>
-
-
getDeviceToken(dynamic firebaseMessaging)
→ Future<String?>
-
-
getDouble({int min = 0, int max = 100})
→ double
-
-
getInt({int min = 0, int max = 100})
→ int
-
-
getMarkerIcon(Function converter, String imagePath)
→ Future
-
converter to asset files BitmapDescriptor.fromAssetImage,
-
getSvgImage()
→ String
-
-
getUserName()
→ String
-
-
hideKeyboard()
→ void
-
-
hideStatusBar()
→ void
-
-
isInsideArea(dynamic currentPosition, List vertices)
→ bool
-
if it return true it's mean this position inside area
it's take
currentPosition
from type LatLng, and vertices
List
-
nationalIdValidation(String? value)
→ bool
-
-
passwordValidation(String? value)
→ bool
-
-
phoneValidation(String? value)
→ bool
-
-
preventLandScapeMode()
→ void
-
-
sameValidation(String? value, String? secondValue)
→ bool
-
-
textValidation(String? value, {int min = 0, int max = 500})
→ bool
-