isType<V> function

_WhenCheck isType<V>()

Allows for checking if a when value is of a certain type.

Implementation

_WhenCheck isType<V>() => <T>(value) => value is V;