S class
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
Static Methods
-
byteListToHexString(List<int> bytes)
→ String
-
-
byteToInt8(int b)
→ int
-
Convert a byte length int value to an int value, for example a byte of 00000010 -> 2
-
clearBit({required int bit, int? value})
→ int
-
-
compare(dynamic a, dynamic b, {bool ascending = true, bool ignoreCase = true})
→ int?
-
compareTo function with ascending/descending and ignore case
-
fromBase64(dynamic s)
→ String?
-
fromBase64() but safe to use on null
-
Returns a String name given an Enum Type
-
hasLower(String value)
→ bool
-
Check if a String contains lowercase character(s)
-
hasNumber(String value)
→ bool
-
Check if a String contains numeric character(s)
-
hasSpecialCharacter(String value)
→ bool
-
Check if a String contains special character(s)
-
hasUpper(String value)
→ bool
-
Check if a String contains uppercase character(s)
-
isBitSet({int? bit, int? value})
→ bool
-
-
isBool(dynamic b)
→ bool
-
Dynamic check for a boolean from a String/bool
-
isLowerCase(dynamic v)
→ bool
-
returns true if v is all lower case characters
-
isNullOrEmpty(dynamic s)
→ bool
-
Takes in a String/List and returns true if it is null, blank or empty
-
isNumber(dynamic s)
→ bool
-
Returns true if a String/Value is numeric
-
isNumeric(String s)
→ bool
-
Check if a String is numeric value
-
isPercentage(dynamic s)
→ bool
-
Check if a String is a percentage value
-
isUpperCase(dynamic v)
→ bool
-
returns true if v is all upper case characters
-
isValidEmail(String value)
→ bool
-
Check if a String is a valid email
-
isValidPassword(String? value)
→ String
-
-
isValidPhone(String value)
→ bool
-
Check if a String is a valid phone number
-
item(Object list, int index)
→ dynamic
-
List Item
-
ltrim(String s, String char)
→ String
-
Trim a String from the start of another String
-
mapBoo(Map? map, dynamic key, {bool? defaultValue})
→ bool?
-
Returns the value from mapVal as a bool if it is a bool
-
mapDbl(Map map, dynamic key, {double? defaultValue})
→ double?
-
Returns a value from mapVal as a double if it is numeric
-
mapInt(Map? map, dynamic key, {int? defaultValue})
→ int?
-
Returns the value from mapVal as an int if it is numeric
-
mapVal(Map? map, dynamic key, {dynamic defaultValue})
→ dynamic
-
Returns a key value pair from a map if it exists, otherwise optionally return a default value else null
-
mimetype(String path, {String defaultType = ""})
→ Future<String>
-
-
newId({String prefix = "auto"})
→ String
-
-
parseEmojis(String val)
→ String
-
Parses Strings containing emoiji(s) in a text syntax like
:taco: to 🌮
-
removeNonASCII(String str)
→ String
-
Remove the non ASCII characters from a String
-
rtrim(String s, String char)
→ String
-
Trim a String from the end of another String
-
setBit({required int bit, int? value})
→ int
-
-
timestamp()
→ String
-
Returns a String Datetime of the current time as this format
13:37:09:480
-
toBase64(dynamic s)
→ String?
-
toBase64() but safe to use on null
-
toBool(dynamic s)
→ bool?
-
Returns a bool from a String if it is a bool value including '0' / '1' / 'no' / 'yes'
-
toChar(DateTime? datetime, {String? format})
→ String?
-
Helper function for an
eval._toDate()
-
toColor(String? color)
→ Color?
-
Parse a String to a Flutter Color
-
toDataUri(dynamic uri)
→ UriData?
-
-
toDate(String? datetime, {String? format})
→ DateTime?
-
Converts a String to a formattable DateTime object
-
toDouble(dynamic s)
→ double?
-
If a value (typically a String) is numeric return as a double
-
toEnum<T>(String? key, List<T> values)
→ T?
-
Returns an Enum given a Key [Value] pair
-
toInt(dynamic s)
→ int?
-
Returns an int from a String if it is a numeric value
-
toNum(dynamic s)
→ num?
-
Takes a value typically a String and if its numeric parsed will output a num
-
toSafeFileName(String filename, {String separator = '-', bool withSpaces = false, bool lowercase = false, bool onlyAlphanumeric = false})
→ String
-
makes a filename safe
-
toStr(dynamic s)
→ String?
-
toString() but safe to use on null
-
toTitleCase(String text)
→ String
-
Returns a given String with all the first chars of each word capitalised and other chars lowercase
-
toVersionNumber(String? version)
→ int?
-
-
twoByteToInt16(int v1, int v2)
→ int
-
Convert two byte length int values to an int value, for example a byte of [00000001, 00000010] -> 258