of method

T? of(
  1. bool? selected
)

Implementation

T? of(bool? selected) => selected ?? false ? secondary : primary;