as5OrNull property

X5? get as5OrNull

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

Implementation

X5? get as5OrNull => value is X5 ? value as X5 : null;