sip/src/utils library

Classes

Math

Constants

decoder → const JsonDecoder
encoder → const JsonEncoder

Functions

calculateMD5(String string) String
cloneArray(List array) List
createRandomToken(int size, {int base = 32}) String
decodeURIComponent(String str) String
encodeURIComponent(String str) String
escapeUser(String user) String
Hex-escape a SIP URI user. Don't hex-escape ':' (%3A), '+' (%2B), '?' (%3F"), '/' (%2F).
headerize(String str) String
hostType(String host) → dynamic
isDecimal(dynamic input) bool
isEmpty(dynamic value) bool
isFunction(dynamic fn) bool
isNaN(dynamic input) bool
isString(dynamic str) bool
newTag() String
newUUID() String
normalizeTarget(dynamic target, [String? domain]) URI?
Normalize SIP URI. NOTE: It does not allow a SIP URI without username. Accepts 'sip', 'sips' and 'tel' URIs and convert them into 'sip'. Detects the domain part (if given) and properly hex-escapes the user portion. If the user portion has only 'tel' number symbols the user portion is clean of 'tel' visual separators.
parseFloat(String input) double?
parseInt(String input, int radix) int?
sipErrorCause(dynamic statusCode) String
strUtf8Length(String string) int
test100(String statusCode) bool
test1XX(String statusCode) bool
test2XX(String statusCode) bool
unescape(String str) String