withBracesOrNot method

String withBracesOrNot()

add braces or not if empty

Implementation

String withBracesOrNot() => trim().isEmpty ? '' : withBraces();