CommonUtils class

Constructors

CommonUtils()
const

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

containsValue(Map<String, dynamic> map, String comparedTo) → Either<bool, bool>
currencyFormat(double amount, {String? symbol, String locale = 'id_ID', int decimalDigits = 2, String? customPattern}) String
dateFormat(String pattern, DateTime? date, String? locale) String?
firstDateOfWeek(DateTime current) DateTime
getInitials(String value) String
getRandomString(int length) String
getUUID() String
lastDateOfWeek(DateTime current) DateTime
replaceSpace(String value) String
validateEmail(String value) bool
validatePassword(String password) bool
validatePhone(String phone) bool

Constants

defaultCountryCallingCode → const String