ifThen method

String ifThen(
  1. String ifString,
  2. String thenString
)

Implementation

String ifThen(String ifString, String thenString) {
  if (this == null || this == ifString) return thenString;
  return this!;
}