as6OrNull property

X6? get as6OrNull

Return the value if it has type X6, otherwise null.

Implementation

X6? get as6OrNull => value is X6 ? value as X6 : null;