Json5StringExtension extension

Extension methods for String.

on

Properties

isBlank → bool

Available on String?, provided by the Json5StringExtension extension

Returns true if the string is null, empty, or entirely whitespace.
no setter
isNotBlank → bool

Available on String?, provided by the Json5StringExtension extension

Returns true if the string is not: null; empty; or entirely whitespace.
no setter

Methods

compareToIgnoreCase(String? other) → int

Available on String?, provided by the Json5StringExtension extension

Returns the result of comparing this tring to another string, ignoring case.
toBool({bool defaultValue = false}) → bool

Available on String?, provided by the Json5StringExtension extension

Converts the string to a boolan value
toDateTime([DateTime? defaultValue]) → DateTime?

Available on String?, provided by the Json5StringExtension extension

Converts the string to a DateTime.
toDateTimeUtc([DateTime? defaultValue]) → DateTime?

Available on String?, provided by the Json5StringExtension extension

Converts the string to a UTC DateTime.
toDouble([double defaultValue = 0]) → double

Available on String?, provided by the Json5StringExtension extension

Converts the string to a double.
toInt([int defaultValue = 0]) → int

Available on String?, provided by the Json5StringExtension extension

Converts the string to an integer.