commons library

Constants

circular12 → const BorderRadius
circular14 → const BorderRadius
circular16 → const BorderRadius
circular32 → const BorderRadius
circular4 → const BorderRadius
circular8 → const BorderRadius
divider → const Divider
edge16 → const EdgeInsets
edge2 → const EdgeInsets
edge24 → const EdgeInsets
edge4 → const EdgeInsets
edge8 → const EdgeInsets
edgeH16 → const EdgeInsets
edgeH16V4 → const EdgeInsets
edgeH16V8 → const EdgeInsets
edgeH2 → const EdgeInsets
edgeH24 → const EdgeInsets
edgeH24V8 → const EdgeInsets
edgeH2V8 → const EdgeInsets
edgeH4 → const EdgeInsets
edgeH4V8 → const EdgeInsets
edgeH8 → const EdgeInsets
edgeH8V16 → const EdgeInsets
edgeH8V24 → const EdgeInsets
edgeH8V4 → const EdgeInsets
edgeV24 → const EdgeInsets
edgeV8 → const EdgeInsets
space12 → const Space
space16 → const Space
space2 → const Space
space24 → const Space
space32 → const Space
space4 → const Space
space48 → const Space
space8 → const Space

Properties

networkImage String
no setter

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