StringExt extension

String extension methods.

on

Methods

toBase58Data() Base58Data
Convert Base58 String to Base58Data.
toBase64Data() Base64Data
Convert Base64 String to Base64Data.
toBigInt({int? radix}) BigInt
toDateTime(TimeUnit unit, {bool isUtc = false}) DateTime
Parse timestamp
toDecimal() → Decimal
Parse num string to exactly Decimal.
toDouble() double
toHexData() HexData
Convert Hex String to HexData.
toInt({int? radix}) int
toNum() num
toUri([int start = 0, int? end]) Uri
tryToBase58Data() Base58Data?
tryToBase64Data() Base64Data?
tryToBigInt({int? radix}) BigInt?
tryToDateTime(TimeUnit unit, {bool isUtc = false}) DateTime?
Try to parse timestamp.
tryToDecimal() → Decimal?
tryToDouble() double?
tryToHexData() HexData?
tryToInt({int? radix}) int?
tryToNum() num?
tryToUri([int start = 0, int? end]) Uri?