orDefaultWithTrim method

String orDefaultWithTrim(
  1. String defaultValue
)

如果为 null 或空,返回默认值 自动 trim()

Implementation

String orDefaultWithTrim(String defaultValue) => isNullOrEmpty ? defaultValue.trim() : this!.trim();