app/data/helper
library
Functions
-
checkFile(String mediaLocalStoragePath)
→ bool
-
-
checkFileUploadSize(String path, String mediaType)
→ bool
-
-
checkIosFile(String mediaLocalStoragePath)
→ dynamic
-
-
convertSecondToLastSeen(String seconds)
→ String
-
-
darken(Color color, [double amount = .1])
→ Color
-
-
equalsWithToday(DateTime srcDate, String day)
→ bool
-
-
equalsWithYesterday(DateTime srcDate, String day)
→ bool
-
-
getChatTime(BuildContext context, int? epochTime)
→ String
-
-
getDateFromTimestamp(int convertedTime, String format)
→ String
-
-
getDisplayImage(RecentChatData recentChat)
→ String
-
-
getDocAsset(String filename)
→ String
-
-
getFileSizeText(String fileSizeInBytes)
→ String
-
-
getGroupProfile(String jid, {bool server = false})
→ Future<Profile>
-
-
getMemberName(Member item)
→ String
-
-
getMessageOfId(String mid)
→ Future<ChatMessageModel>
-
-
getMobileNumberFromJid(String jid)
→ String
-
-
getName(Profile item)
→ String
-
-
getProfileDetails(String jid)
→ Future<Profile>
-
-
getRecentChatOfJid(String jid)
→ Future<RecentChatData?>
-
-
getRecentChatTime(BuildContext context, int? epochTime)
→ String
-
-
getRecentName(RecentChatData item)
→ String
-
-
getRoundedFileSize(double unscaledValue)
→ double
-
-
getUserProfile(String jid, {bool server = false})
→ Future<ProfileData>
-
-
hasMatch(String? value, String pattern)
→ bool
-
-
isValidPhoneNumber(String s)
→ bool
-
-
launchCaller(String phoneNumber)
→ dynamic
-
-
launchEmail(String emailID)
→ Future<void>
-
-
launchInBrowser(String url)
→ Future<void>
-
-
lighten(Color color, [double amount = .1])
→ Color
-
-
listItem({Widget? leading, required Widget title, Widget? trailing, required dynamic onTap()})
→ InkWell
-
-
makePhoneCall(String phoneNumber)
→ Future<void>
-
-
manipulateMessageTime(BuildContext context, DateTime messageDate)
→ String
-
-
openDocument(String mediaLocalStoragePath)
→ dynamic
-
-
returnFormattedCount(int count)
→ String
-
-
setDateHourFormat(int format, int hours)
→ String
-
-