Utility class

Constructors

Utility()

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

checkFileMimeType(String? mimeType) bool
getCompatNumber(dynamic number) String
getCurrency(num value, String? symbol) String
getDateFormat(String pattern, DateTime date) String
getFirstName(String title) String
getNumberBasedOnLocale(BuildContext context, num value) String
getTotalMinutes(int totalMinutes, DateTime enterTime) int
getUrlForImage(String? url, RESOLUTION_TYPE? resolution, SERVICE_TYPE? service_type, {bool shouldprint = false, required String urlWithoutHttp}) String
getWordsCountFromRegex(String str) int
getWordsCountFromRegexPost(String str) int
isNumeric(String s) bool
isSameDay(DateTime? a, DateTime? b) bool
makePhoneCall(String? mobile, BuildContext context) → dynamic
matchLinkRegex(String text) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openWebView(BuildContext context, String webLink) → void
openWhatsapp(BuildContext context, String number) → void
showSnackBar(String message, BuildContext context, Color color, {Color? textColor}) → void
showToast(String message, BuildContext? context, Color color) → void
toCamelCase(String text) String
toString() String
A string representation of this object.
inherited
translate(BuildContext context, String source, String? inputLanCode, String outputLanCode, String type, String apiKey, String token) Future<String?>

Operators

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