removeEmptyLines property

String get removeEmptyLines

removeExtraSpaces: removes extra spaces from a string

Implementation

String get removeEmptyLines =>
    this?.replaceAll(RegExp(r'\n\s*\n'), '\n') ?? "";