NyStr extension

Extensions for String

on

Methods

dd({String? tag}) → dynamic
dump the value to the console and exit the app. tag is optional.
dump({String? tag}) → dynamic
dump the value to the console. tag is optional.
parseJson() → dynamic
jsonDecode a String.
toDateTime() DateTime
Attempt to convert a String to a DateTime.
toHexColor() Color
toModel<T>() → T
Attempt to convert a String into a model by using your model decoders.