common/utils/utils
library
Functions
-
asDartStringList(dynamic data)
→ List<String>
-
helper function to convert list ffiString object to DartString.
-
daysInRange(DateTime first, DateTime last)
→ List<DateTime>
-
-
documentTypeFromFileExtension(String fileExtension)
→ String
-
-
eventDateFormat(DateTime dateTime)
→ String
-
-
formatDate(dynamic e)
→ String
-
-
formatTime(dynamic e)
→ String
-
-
getDayFromDate(dynamic utcDateTime)
→ String
-
-
getHumanReadableFileSize(int bytes)
→ String
-
-
getIssueId(String url)
→ String?
-
-
getMonthFromDate(dynamic utcDateTime)
→ String
-
-
getRandomElement<T>(List<T> list)
→ T
-
-
getTimeFromDate(dynamic context, dynamic utcDateTime)
→ String
-
-
getUserAvatarNameColor(dynamic user, List colors)
→ dynamic
-
-
getUserInitials(dynamic user)
→ String
-
-
hexOfRGBA(int r, int g, int b, {double opacity = 1})
→ int
-
-
isOnlyEmojis(String text)
→ bool
-
-
jiffyTime(dynamic context, int timeInterval)
→ String
-
-
mailTo({required String toAddress, String? subject})
→ Future<void>
-
-
openAvatar(dynamic context, dynamic ref, String roomId)
→ Future<void>
-
-
openLink(String target, dynamic context)
→ Future<bool>
-
-
randomString()
→ String
-
-
shareTextToWhatsApp(dynamic context, {required String text})
→ Future<void>
-
-
simplifyBody(String formattedBody)
→ String
-
-
simplifyRoomId(String name)
→ String?
-
-
simplifyUserId(String name)
→ String?
-
-
taskDueDateFormat(DateTime dateTime)
→ String
-
-
uploadAvatar(dynamic ref, dynamic context, String roomId)
→ Future<void>
-