elseIf method

T? elseIf(
  1. bool statement,
  2. T branch()
)

Implementation

T? elseIf(bool statement, T Function() branch) {
  return this ?? iff(statement, branch);
}