CommonMethod class

Constructors

CommonMethod()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createFileOfPdfUrl({required String imgPath}) → Future<File>
determinePosition({bool requestPermission = false, bool showLoader = true, bool openAppSetting = true}) → Future<Position?>
downloadMediaFromUrl({required String fileName, required String mediaType, required String url, required void onProgressUpdate(int, int), required void onDioException()}) → Future<void>
getAddressFromCoordinates({required double? latitude, required double? longitude}) → Future<Placemark?>
getDeviceId() → Future<String?>
getKeyboardTypeFromRegex(String? regex) → TextInputType
getStateCityFromAddressResponse({required AddressDetailResponse? addressDetailResponse}) → Future<Map<String, String>?>
hasNetwork() → Future<bool>
hexToInt({required String hex}) → int
isKeyboardVisible(BuildContext context) → bool
millisecondsToMinutes(num milliseconds) → String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
uint8ListToXFile({required Uint8List bytes, String fileName = 'history_detail.png'}) → Future<XFile>

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

getCompressedUrl({required String? originalImageUrl, required String imageHeight, int dpr = 5}) → String