commons library

Properties

networkImage String
no setter

Functions

changeLang(BuildContext context, String newLocale) → void
distanceBetween(double startLatitude, double startLongitude, double endLatitude, double endLongitude) double
return result in meter
emailValidation(String? value) bool
enumToString<T>(T value) String
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
getHeight(double percent) double
getImage(String imagePath) String
getInt({int min = 0, int max = 100}) int
getMarkerIcon(Function converter, String imagePath) Future
converter to asset files BitmapDescriptor.fromAssetImage,
getSize(double size) double
getSvgImage() String
getUserName() String
getWidth(double percent) double
hideStatusBar() → void
passwordValidation(String? value) bool
phoneValidation(String? value) bool
pop({dynamic result}) Future
preventLandScapeMode() → void
printWrapped(String text) → void
push<T extends ChangeNotifier>(Widget screen, [T? provider]) Future
pushClear<T extends ChangeNotifier>(Widget screen, [T? provider]) → void
pushReplacement<T extends ChangeNotifier>(Widget screen, [T? provider]) → void
replaceFarsiNumber(String input) String
sameValidation(String? value, String secondValue) bool
textValidation(String? value) bool