orDash method

String orDash()

Returns the value or -- when null or blank.

Implementation

String orDash() => (this == null || this!.trim().isEmpty) ? '--' : this!;