ExString extension
扩展String
- on
Properties
- isEmptyOrNull → bool
-
Available on String?, provided by the ExString extension
是否为空或nullno setter - isNotEmptyOrNull → bool
-
Available on String?, provided by the ExString extension
是否不为空或nullno setter
Methods
-
dateFormat(
String pattern) → String? - 格式化时间字符串
-
getDateTime(
{bool? isUtc}) → DateTime? - 获取DateTime对象
-
toDateString(
) → String? - 格式化时间字符串为日期
-
toDateTimeString(
) → String? - 格式化时间字符串为日期时间
-
toDouble(
{double defValue = 0}) → double? - 转为double类型
-
toInt(
{int defValue = 0}) → int? - 转为int类型
-
toNumber(
{num defValue = 0}) → num? - 转为num类型
-
toTimeString(
) → String? - 格式化时间字符串为时间