ifEmpty method

String? ifEmpty(
  1. Function action
)

Implementation

String? ifEmpty(Function action) => this?.isEmpty == true ? action() : this;