when<T> method
T
when<T>({
- required T private(),
- required T public(),
Implementation
T when<T>({
required T Function() private,
required T Function() public,
}) =>
{
Visibility.private: private,
Visibility.public: public,
}[this]!();