Utils class

Constructors

Utils.new()
factory

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

calculateMinutesSince(DateTime? joinedAt) int
decodeUnicode(String? input) String
extractFileName(String url) String
extractFirstUrl(String message) String?
extractMessage(String prefix, dynamic data, String fallback) String
extractNonLinkText(String message) String
extractUserAvatar(String? metadata) String?
formatTimestampToTime(int? timestamp) String
generateUniqueColorFromInitials(String initials) Color
generateWhiteboardUrl({required String meetingId, required String livekitToken}) String
getAppName() Future<String>
getInitials(String? fullName) String
getMetadataAttendanceId(String? metadata) String
getMetadataRole(String? metadata) String
getMetadataSessionUid(String? metadata) String
getParticipantType(String? metadata) String
getTimeZoneId() String
getTranscriptFormattedToSave(List<TranscriptionModel> transcriptions) String
getTranslatedTranscriptFormattedToSave(List<TranscriptionModel> transcriptions) String
hideKeyboard(BuildContext context) → void
isCoHost(String? metadata) bool
isHost(String? metadata) bool
isIosSimulator() Future<bool>
isMessageSizeValid(String message) bool
isMobileDevice() bool
isValidEmail(String email) bool
openMediaFile(String filePath, BuildContext context) Future<void>
saveDataToFile(String data, String fileName) Future<SavedData>
showSnackBar(BuildContext context, {required String message, String? actionText, Function? actionCallBack}) → void
validateFile(File? file, dynamic onError(String error)) Future<bool>