StringExtensions extension
- on
Properties
- isNotNullAndNotEmpty → bool
-
Available on String?, provided by the StringExtensions extension
no setter - isNullOrEmpty → bool
-
Available on String?, provided by the StringExtensions extension
no setter
Methods
-
formatDecimal(
{int decimalPlaces = 2, bool convertToFloat = false}) → String -
Available on String?, provided by the StringExtensions extension
Formats the string to a valid decimal number with custom rules.decimalPlaces
defines the number of allowed decimal places. IfconvertToFloat
is true, the result is returned as a float-like string.