common/utils/utils library

Enums

LabsFeature
RoomVisibility

Extensions

ActerContextUtils on dynamic
Context on dynamic
Get provider right from the context no matter where we are
DateHelpers on DateTime
Let on T?
RefDebounceExtension on dynamic
An extension on Ref with helpful methods to add a debounce.
TimeOfDayExtension on dynamic

Constants

largeScreenBreakPoint → const int

Properties

aliasedHttpRegexp RegExp
final
idAliasRegexp RegExp
final
idHttpRegexp RegExp
final
idMatrixRegexp RegExp
final
kFirstDay DateTime
getter/setter pair
kLastDay DateTime
getter/setter pair

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
isValidUrl(String url) bool
jiffyTime(dynamic context, int timeInterval) String
mailTo({required String toAddress, String? subject}) Future<void>
openAvatar(dynamic context, dynamic ref, String roomId) Future<void>
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>