TpUtils class

Constructors

TpUtils()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

composeCall(String phone, BuildContext context, TpAlertDialog dialog) → void
composeOpenUrl(String url) → void
composeSendMail(String address, String subject, String body) → void
composeSendSms(String phone) → void
encodeQueryParameters(Map<String, String> params) String?
formatKg(String value) String
getStorageDirectory(BuildContext context) Future<StorageStatus>
Get external storage with request permission in Android Add key to Info.plist & WRITE_EXTERNAL_STORAGE to manifest.xml
now({String format = kDateFormat}) String
roundDouble(double val, int places) double
share(String title, {String? text, String? linkUrl, String? chooserTitle}) → void
shareFile(String title, String filePath) → void
toDate(String value, {String format = kDateFormat}) DateTime
toVnd(int value, {bool emptyToZero = true}) String
validatePhone(String phone) bool

Constants

kDateFormat → const String